mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 14:45:41 +12:00
[CFG] Implement COPPACS restriction data
This commit is contained in:
parent
2c7cbadc14
commit
513ddf39e0
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,10 @@ void CFGService::getConfigInfoBlk2(u32 messagePointer) {
|
|||
} else if (size == 8 && blockID == 0x30001) { // User time offset
|
||||
printf("Read from user time offset field in NAND. TODO: What is this\n");
|
||||
mem.write64(output, 0);
|
||||
} else if (size == 20 && blockID == 0xC0001) { // COPPACS restriction data, used by games when they detect a USA/Canada region for market restriction stuff
|
||||
for (u32 i = 0; i < size; i += 4) {
|
||||
mem.write32(output + i, 0);
|
||||
}
|
||||
} else {
|
||||
Helpers::panic("Unhandled GetConfigInfoBlk2 configuration. Size = %d, block = %X", size, blockID);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue