summaryrefslogtreecommitdiff
path: root/src/code/graph.c
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-10-09 04:41:16 -0700
committerGitHub <noreply@github.com>2024-10-09 13:41:16 +0200
commit2048a65dd89a5aa8c24616d47411e5363eb49fbf (patch)
treea3dfd4f77e46498b92eed931bc497c4162da89f3 /src/code/graph.c
parent7dd8f2b6ad27ef8ec08b21f9575f5ad6f2dc308d (diff)
[ntsc-1.0/1.1] Match line numbers in debug strings (#2255)
Diffstat (limited to 'src/code/graph.c')
-rw-r--r--src/code/graph.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/code/graph.c b/src/code/graph.c
index bf1621452..1a98ab1af 100644
--- a/src/code/graph.c
+++ b/src/code/graph.c
@@ -379,7 +379,11 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
PRINTF("%c", BEL);
PRINTF(VT_COL(RED, WHITE) T("ダイナミック領域先頭が破壊されています\n", "Dynamic area head is destroyed\n")
VT_RST);
-#if PLATFORM_N64
+#if OOT_VERSION < NTSC_1_1
+ Fault_AddHungupAndCrash("../graph.c", 937);
+#elif OOT_VERSION < PAL_1_0
+ Fault_AddHungupAndCrash("../graph.c", 940);
+#elif OOT_VERSION < GC_JP
Fault_AddHungupAndCrash("../graph.c", 951);
#else
Fault_AddHungupAndCrash("../graph.c", 1070);
@@ -390,7 +394,11 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
PRINTF("%c", BEL);
PRINTF(VT_COL(RED, WHITE)
T("ダイナミック領域末尾が破壊されています\n", "Dynamic region tail is destroyed\n") VT_RST);
-#if PLATFORM_N64
+#if OOT_VERSION < NTSC_1_1
+ Fault_AddHungupAndCrash("../graph.c", 943);
+#elif OOT_VERSION < PAL_1_0
+ Fault_AddHungupAndCrash("../graph.c", 946);
+#elif OOT_VERSION < GC_JP
Fault_AddHungupAndCrash("../graph.c", 957);
#else
Fault_AddHungupAndCrash("../graph.c", 1076);
@@ -486,7 +494,11 @@ void Graph_ThreadEntry(void* arg0) {
sprintf(faultMsg, "CLASS SIZE= %d bytes", size);
Fault_AddHungupAndCrashImpl("GAME CLASS MALLOC FAILED", faultMsg);
-#elif PLATFORM_N64
+#elif OOT_VERSION < NTSC_1_1
+ Fault_AddHungupAndCrash("../graph.c", 1067);
+#elif OOT_VERSION < PAL_1_0
+ Fault_AddHungupAndCrash("../graph.c", 1070);
+#elif OOT_VERSION < GC_JP
Fault_AddHungupAndCrash("../graph.c", 1081);
#else
Fault_AddHungupAndCrash("../graph.c", 1200);