From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:CRO" |
|---|
| claim | "A CRO module has the magic CRO0 at offset 0x80, after four 0x20-byte hash slots; the loaded-module code also accepts FIXD there, which azahar writes when it fixes (trims) a module." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:CRO" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "43 52 4F 30" |
|---|
| offset | "0x80" |
|---|
| meaning | "CRO0 module magic; FIXD (46 49 58 44) replaces it in a module fixed by the RO service (azahar CROHelper::Fix)" |
|---|
| alternatives | |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "CroHeader: hash_table is 4 x 0x20 bytes, struct_magic CRO0 follows; static_assert size 0x138" |
|---|
| repo | "https://github.com/3DSGuy/Project_CTR" |
|---|
| commit | "d52c2b0e788c2d085763d7c5dcc4b2edd9ffb7d8" |
|---|
| path | "ctrtool/deps/libnintendo-n3ds/include/ntd/n3ds/cro.h" |
|---|
| lines | "10,23,54-55,66" |
|---|
|
| type | "source" |
|---|
| detail | "CRO_HASH_SIZE 0x80, MAGIC_CRO0 0x304F5243, MAGIC_FIXD 0x44584946, field addresses start at module + 0x80" |
|---|
| repo | "https://github.com/azahar-emu/azahar" |
|---|
| commit | "987f18405073960622e1043bb44005989135c6e1" |
|---|
| path | "src/core/hle/service/ldr_ro/cro_helper.h" |
|---|
| lines | "27-28,394-398" |
|---|
|
| type | "source" |
|---|
| detail | "RebaseHeader rejects a module whose magic is not CRO0; Fix(level != 0) writes FIXD; IsLoaded accepts CRO0 or FIXD. Only these functions were read for the magic." |
|---|
| repo | "https://github.com/azahar-emu/azahar" |
|---|
| commit | "987f18405073960622e1043bb44005989135c6e1" |
|---|
| path | "src/core/hle/service/ldr_ro/cro_helper.cpp" |
|---|
| lines | "198-203,1490-1517" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "CRO0 at 0x80" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T12:39:12.702Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:15:10.459Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read ctrtool cro.h (hash_table = 4 x std::array<byte_t,0x20> at the start, then le32 struct_magic CRO0, static_assert size 0x138) and azahar cro_helper.h/.cpp at the cited commits: CRO_HASH_SIZE 0x80, MAGIC_CRO0 0x304F5243 (bytes 43 52 4F 30), MAGIC_FIXD 0x44584946 (46 49 58 44); RebaseHeader rejects magic != CRO0 (line 202), Fix writes FIXD (1495), IsLoaded accepts either (1512)." |
|---|
|
|
|---|