mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 23:25:40 +12:00
[Memory] Add 3D Slider shared page value
This commit is contained in:
parent
b868b69dbf
commit
e296a0b0de
2 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,7 @@ namespace ConfigMem {
|
||||||
Datetime0 = 0x1FF81020,
|
Datetime0 = 0x1FF81020,
|
||||||
WifiMac = 0x1FF81060,
|
WifiMac = 0x1FF81060,
|
||||||
NetworkState = 0x1FF81067,
|
NetworkState = 0x1FF81067,
|
||||||
|
SliderState3D = 0x1FF81080,
|
||||||
LedState3D = 0x1FF81084,
|
LedState3D = 0x1FF81084,
|
||||||
BatteryState = 0x1FF81085,
|
BatteryState = 0x1FF81085,
|
||||||
Unknown1086 = 0x1FF81086,
|
Unknown1086 = 0x1FF81086,
|
||||||
|
|
|
@ -135,6 +135,10 @@ u32 Memory::read32(u32 vaddr) {
|
||||||
case ConfigMem::SyscoreVer: return 2;
|
case ConfigMem::SyscoreVer: return 2;
|
||||||
case 0x1FF81000: return 0; // TODO: Figure out what this config mem address does
|
case 0x1FF81000: return 0; // TODO: Figure out what this config mem address does
|
||||||
case ConfigMem::WifiMac: return 0xFF07F440; // Wifi MAC: First 4 bytes of MAC Address
|
case ConfigMem::WifiMac: return 0xFF07F440; // Wifi MAC: First 4 bytes of MAC Address
|
||||||
|
|
||||||
|
// 3D slider. Float in range 0.0 = off, 1.0 = max.
|
||||||
|
case ConfigMem::SliderState3D: return Helpers::bit_cast<u32, float>(0.0f);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (vaddr >= VirtualAddrs::VramStart && vaddr < VirtualAddrs::VramStart + VirtualAddrs::VramSize) {
|
if (vaddr >= VirtualAddrs::VramStart && vaddr < VirtualAddrs::VramStart + VirtualAddrs::VramSize) {
|
||||||
Helpers::warn("VRAM read!\n");
|
Helpers::warn("VRAM read!\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue