mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-06 11:01:38 +12:00
Implement 3DS region auto-detect
This commit is contained in:
parent
b896d9a4aa
commit
408dbe75a0
6 changed files with 84 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "helpers.hpp"
|
||||
#include "handles.hpp"
|
||||
#include "loader/ncsd.hpp"
|
||||
#include "services/region_codes.hpp"
|
||||
#include "services/shared_font.hpp"
|
||||
|
||||
namespace PhysicalAddrs {
|
||||
|
@ -151,6 +152,8 @@ private:
|
|||
|
||||
// Values taken from 3DBrew and Citra
|
||||
static constexpr FirmwareInfo firm{.unk = 0, .revision = 0, .minor = 0x34, .major = 2, .syscoreVer = 2, .sdkVer = 0x0000F297};
|
||||
// Adjusted upon loading a ROM based on the ROM header. Used by CFG::SecureInfoGetArea to get past region locks
|
||||
Regions region = Regions::USA;
|
||||
|
||||
public:
|
||||
u16 kernelVersion = 0;
|
||||
|
@ -261,4 +264,5 @@ public:
|
|||
|
||||
void setVRAM(u8* pointer) { vram = pointer; }
|
||||
bool allocateMainThreadStack(u32 size);
|
||||
Regions getConsoleRegion();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue