DEMO_SELECT

This commit is contained in:
LagoLunatic
2025-07-25 21:05:36 -04:00
parent 4ebe6758cb
commit 72dc8f4ef6
43 changed files with 210 additions and 206 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ s32 JKRDvdFile::readData(void* param_1, s32 length, s32 param_3) {
/* 802BCBCC-802BCC24 .text writeData__10JKRDvdFileFPCvll */
s32 JKRDvdFile::writeData(const void* param_0, s32 length, s32 param_2) {
/* clang-format off */
JUT_ASSERT(VERSION_SELECT(364, 340, 340, 340), ( length & 0x1f ) == 0);
JUT_ASSERT(DEMO_SELECT(364, 340), ( length & 0x1f ) == 0);
/* clang-format on */
return -1;
+3 -3
View File
@@ -361,7 +361,7 @@ void JKRExpHeap::do_free(void* ptr) {
block->free(this);
}
} else {
JUT_WARN(VERSION_SELECT(885, 888, 888, 888), "free: memblock %x not in heap %x", ptr, this);
JUT_WARN(DEMO_SELECT(885, 888), "free: memblock %x not in heap %x", ptr, this);
}
unlock();
}
@@ -548,7 +548,7 @@ static void dummy1() {
/* 802B24EC-802B2584 .text appendUsedList__10JKRExpHeapFPQ210JKRExpHeap9CMemBlock */
void JKRExpHeap::appendUsedList(CMemBlock* newblock) {
if (!newblock) {
OSPanic(__FILE__, VERSION_SELECT(1458, 1466, 1466, 1466), ":::ERROR! appendUsedList\n");
OSPanic(__FILE__, DEMO_SELECT(1458, 1466), ":::ERROR! appendUsedList\n");
}
CMemBlock* block = mTailUsedList;
@@ -691,7 +691,7 @@ void JKRExpHeap::joinTwoBlocks(CMemBlock* block) {
OSReport(":::: endAddr = %x\n", endAddr);
OSReport(":::: nextAddr = %x\n", nextAddr);
JKRGetCurrentHeap()->dump();
OSPanic(__FILE__, VERSION_SELECT(1710, 1718, 1718, 1718), ":::: Bad Block\n");
OSPanic(__FILE__, DEMO_SELECT(1710, 1718), ":::: Bad Block\n");
}
if (endAddr == nextAddr) {
+1 -1
View File
@@ -281,7 +281,7 @@ void* JUTGba::gbaThreadMain(void* param_1) {
sManager->gbaThread_GetStatus(&threadVar);
break;
default:
OSPanic(__FILE__, VERSION_SELECT(622, 623, 623, 623), "UNKNOWN GBA COMMAND.");
OSPanic(__FILE__, DEMO_SELECT(622, 623), "UNKNOWN GBA COMMAND.");
break;
}
if (threadVar.field_0x14) {