[CFG] Implement COPPACS restriction data

This commit is contained in:
wheremyfoodat 2023-03-18 20:41:06 +02:00
parent 2c7cbadc14
commit 513ddf39e0

View file

@ -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);
}