mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Add ConfigMem FIRM stuff and GetSystemInfo modes for DDLC
This commit is contained in:
parent
2bb751110b
commit
e2b82997ba
4 changed files with 45 additions and 0 deletions
|
@ -9,6 +9,13 @@ namespace ConfigMem {
|
|||
SyscoreVer = 0x1FF80010,
|
||||
EnvInfo = 0x1FF80014,
|
||||
AppMemAlloc = 0x1FF80040,
|
||||
FirmUnknown = 0x1FF80060,
|
||||
FirmRevision = 0x1FF80061,
|
||||
FirmVersionMinor = 0x1FF80062,
|
||||
FirmVersionMajor = 0x1FF80063,
|
||||
FirmSyscoreVer = 0x1FF80064,
|
||||
FirmSdkVer = 0x1FF80068,
|
||||
|
||||
HardwareType = 0x1FF81004,
|
||||
Datetime0 = 0x1FF81020,
|
||||
WifiMac = 0x1FF81060,
|
||||
|
|
|
@ -139,6 +139,19 @@ private:
|
|||
// Report a retail unit without JTAG
|
||||
static constexpr u32 envInfo = 1;
|
||||
|
||||
// Stored in Configuration Memory starting @ 0x1FF80060
|
||||
struct FirmwareInfo {
|
||||
u8 unk; // Usually 0 according to 3DBrew
|
||||
u8 revision;
|
||||
u8 minor;
|
||||
u8 major;
|
||||
u32 syscoreVer;
|
||||
u32 sdkVer;
|
||||
};
|
||||
|
||||
// Values taken from 3DBrew and Citra
|
||||
static constexpr FirmwareInfo firm{.unk = 0, .revision = 0, .minor = 0x34, .major = 2, .syscoreVer = 2, .sdkVer = 0x0000F297};
|
||||
|
||||
public:
|
||||
u16 kernelVersion = 0;
|
||||
u32 usedUserMemory = u32(0_MB); // How much of the APPLICATION FCRAM range is used (allocated to the appcore)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue