[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

@ -124,6 +124,10 @@ class Memory {
std::optional<u32> findPaddr(u32 size);
u64 timeSince3DSEpoch();
// https://www.3dbrew.org/wiki/Configuration_Memory#ENVINFO
// Report a retail unit without JTAG
static constexpr u32 envInfo = 1;
public:
u16 kernelVersion = 0;
u32 usedUserMemory = 0;