mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-11 00:25:41 +12:00
Update ldr_ro.cpp
This commit is contained in:
parent
505d54d79a
commit
29e3aa9412
1 changed files with 6 additions and 2 deletions
|
@ -22,9 +22,9 @@ namespace CROHeader {
|
||||||
NameOffset = 0x084,
|
NameOffset = 0x084,
|
||||||
NextCRO = 0x088,
|
NextCRO = 0x088,
|
||||||
PrevCRO = 0x08C,
|
PrevCRO = 0x08C,
|
||||||
|
OnUnresolved = 0x0AC,
|
||||||
CodeOffset = 0x0B0,
|
CodeOffset = 0x0B0,
|
||||||
DataOffset = 0x0B8,
|
DataOffset = 0x0B8,
|
||||||
OnUnresolved = 0x0AC,
|
|
||||||
ModuleNameOffset = 0x0C0,
|
ModuleNameOffset = 0x0C0,
|
||||||
SegmentTableOffset = 0x0C8,
|
SegmentTableOffset = 0x0C8,
|
||||||
SegmentTableSize = 0x0CC,
|
SegmentTableSize = 0x0CC,
|
||||||
|
@ -137,6 +137,10 @@ struct CROHeaderEntry {
|
||||||
|
|
||||||
static constexpr u32 CRO_HEADER_SIZE = 0x138;
|
static constexpr u32 CRO_HEADER_SIZE = 0x138;
|
||||||
|
|
||||||
|
static const std::string CRO_MAGIC("CRO0");
|
||||||
|
static const std::string CRO_MAGIC_FIXED("FIXD");
|
||||||
|
static const std::string CRR_MAGIC("CRR0");
|
||||||
|
|
||||||
class CRO {
|
class CRO {
|
||||||
Memory &mem;
|
Memory &mem;
|
||||||
|
|
||||||
|
@ -293,7 +297,7 @@ public:
|
||||||
|
|
||||||
// Verify CRO magic
|
// Verify CRO magic
|
||||||
const std::string magic = mem.readString(croPointer + CROHeader::ID, 4);
|
const std::string magic = mem.readString(croPointer + CROHeader::ID, 4);
|
||||||
if (magic.compare(std::string("CRO0")) != 0) {
|
if (magic.compare(CRO_MAGIC) != 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue