mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-11 14:38:38 -04:00
Escape question marks that modern compilers interpret as trigraphs
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user