[ConfigMem] Implement address 0x1FF81086

This commit is contained in:
wheremyfoodat 2023-04-15 02:05:52 +03:00
parent 3a674a1ba0
commit 2d9592768c
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@ namespace ConfigMem {
NetworkState = 0x1FF81067,
LedState3D = 0x1FF81084,
BatteryState = 0x1FF81085,
Unknown1086 = 0x1FF81086,
HeadphonesConnectedMaybe = 0x1FF810C0 // TODO: What is actually stored here?
};

View file

@ -76,6 +76,7 @@ u8 Memory::read8(u32 vaddr) {
case ConfigMem::LedState3D: return 1; // Report the 3D LED as always off (non-zero) for now
case ConfigMem::NetworkState: return 2; // Report that we've got an internet connection
case ConfigMem::HeadphonesConnectedMaybe: return 0;
case ConfigMem::Unknown1086: return 1; // It's unknown what this is but some games want it to be 1
default: Helpers::panic("Unimplemented 8-bit read, addr: %08X", vaddr);
}
}