mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-14 18:19:48 +12:00
[ConfigMem] Implement address 0x1FF81086
This commit is contained in:
parent
3a674a1ba0
commit
2d9592768c
2 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ namespace ConfigMem {
|
||||||
NetworkState = 0x1FF81067,
|
NetworkState = 0x1FF81067,
|
||||||
LedState3D = 0x1FF81084,
|
LedState3D = 0x1FF81084,
|
||||||
BatteryState = 0x1FF81085,
|
BatteryState = 0x1FF81085,
|
||||||
|
Unknown1086 = 0x1FF81086,
|
||||||
HeadphonesConnectedMaybe = 0x1FF810C0 // TODO: What is actually stored here?
|
HeadphonesConnectedMaybe = 0x1FF810C0 // TODO: What is actually stored here?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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::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::NetworkState: return 2; // Report that we've got an internet connection
|
||||||
case ConfigMem::HeadphonesConnectedMaybe: return 0;
|
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);
|
default: Helpers::panic("Unimplemented 8-bit read, addr: %08X", vaddr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue