[FS/Memory] Add ENVINFO and some FS calls for Metroid 2

This commit is contained in:
wheremyfoodat 2022-10-15 21:58:14 +03:00
parent ec26631e5d
commit 015343a848
5 changed files with 45 additions and 2 deletions

View file

@ -74,6 +74,7 @@ u8 Memory::read8(u32 vaddr) {
}
else {
switch (vaddr) {
case ConfigMem::EnvInfo: return envInfo;
case ConfigMem::KernelVersionMinor: return u8(kernelVersion & 0xff);
case ConfigMem::KernelVersionMajor: return u8(kernelVersion >> 8);
case ConfigMem::LedState3D: return 1; // Report the 3D LED as always off (non-zero) for now