From 26a72567db7146f973d8afcb204643f5c836fb68 Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Tue, 8 Apr 2025 16:32:26 -0400 Subject: [PATCH] Escape question marks that modern compilers interpret as trigraphs --- src/JSystem/JKernel/JKRArchivePub.cpp | 4 ++-- src/m_Do/m_Do_main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/JSystem/JKernel/JKRArchivePub.cpp b/src/JSystem/JKernel/JKRArchivePub.cpp index 540e1ee44..d74db7b01 100644 --- a/src/JSystem/JKernel/JKRArchivePub.cpp +++ b/src/JSystem/JKernel/JKRArchivePub.cpp @@ -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); diff --git a/src/m_Do/m_Do_main.cpp b/src/m_Do/m_Do_main.cpp index 8339e4416..dd9307c4f 100644 --- a/src/m_Do/m_Do_main.cpp +++ b/src/m_Do/m_Do_main.cpp @@ -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,