Add PREV_FIRM

This commit is contained in:
Nomi 2023-09-26 02:45:29 +02:00
parent 8742930e2d
commit 22ac1079d3
2 changed files with 2 additions and 0 deletions

View file

@ -8,6 +8,7 @@ namespace ConfigMem {
KernelVersionMajor = 0x1FF80003,
SyscoreVer = 0x1FF80010,
EnvInfo = 0x1FF80014,
PrevFirm = 0x1FF80016,
AppMemAlloc = 0x1FF80040,
FirmUnknown = 0x1FF80060,
FirmRevision = 0x1FF80061,

View file

@ -108,6 +108,7 @@ u8 Memory::read8(u32 vaddr) {
return getBatteryState(chargerPlugged, charging, batteryLevel);
}
case ConfigMem::EnvInfo: return envInfo;
case ConfigMem::PrevFirm: return 0;
case ConfigMem::HardwareType: return ConfigMem::HardwareCodes::Product;
case ConfigMem::KernelVersionMinor: return u8(kernelVersion & 0xff);
case ConfigMem::KernelVersionMajor: return u8(kernelVersion >> 8);