Escape question marks that modern compilers interpret as trigraphs

This commit is contained in:
LagoLunatic
2025-04-08 16:32:26 -04:00
parent b9cc7a947e
commit 26a72567db
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -155,7 +155,7 @@ void* JKRArchive::getResource(u32 type, const char* path) {
JUT_ASSERT(VERSION_SELECT(384, 332, 332), isMounted());
SDIFileEntry* fileEntry;
if (type == 0 || type == '????') {
if (type == 0 || type == '\?\?\?\?') {
fileEntry = findNameResource(path);
} else {
fileEntry = findTypeResource(type, path);
@@ -193,7 +193,7 @@ u32 JKRArchive::readResource(void* buffer, u32 bufferSize, u32 type, const char*
JUT_ASSERT(VERSION_SELECT(543, 491, 491), isMounted());
SDIFileEntry* fileEntry;
if (type == 0 || type == '????') {
if (type == 0 || type == '\?\?\?\?') {
fileEntry = findNameResource(path);
} else {
fileEntry = findTypeResource(type, path);
+1 -1
View File
@@ -51,7 +51,7 @@ void HeapCheck::CheckHeap1() {
mMaxTotalFreeSize = freeSize;
}
char mDoMain::COPYDATE_STRING[18] = "??/??/?? ??:??:??";
char mDoMain::COPYDATE_STRING[18] = "\?\?/\?\?/?? ??:??:??";
static HeapCheck RootHeapCheck = {
"Root", NULL, 0, 0x7FFFFFFF, 0x1400000, 0x140, 0x10000, 0, 0,