[Memory] Add 3D Slider shared page value

This commit is contained in:
wheremyfoodat 2023-08-03 13:30:02 +03:00
parent b868b69dbf
commit e296a0b0de
2 changed files with 5 additions and 0 deletions

View file

@ -13,6 +13,7 @@ namespace ConfigMem {
Datetime0 = 0x1FF81020,
WifiMac = 0x1FF81060,
NetworkState = 0x1FF81067,
SliderState3D = 0x1FF81080,
LedState3D = 0x1FF81084,
BatteryState = 0x1FF81085,
Unknown1086 = 0x1FF81086,

View file

@ -135,6 +135,10 @@ u32 Memory::read32(u32 vaddr) {
case ConfigMem::SyscoreVer: return 2;
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
// 3D slider. Float in range 0.0 = off, 1.0 = max.
case ConfigMem::SliderState3D: return Helpers::bit_cast<u32, float>(0.0f);
default:
if (vaddr >= VirtualAddrs::VramStart && vaddr < VirtualAddrs::VramStart + VirtualAddrs::VramSize) {
Helpers::warn("VRAM read!\n");