Skip to content

Commit 3446529

Browse files
committed
Error Handler - Display the retail version
1 parent 63f4899 commit 3446529

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

ttyd-tools/rel/source/draw.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5373,9 +5373,18 @@ void Mod::errorHandler(uint16_t error, gc::OSContext::OSContext *context, uint32
53735373
const char *Text = "Press/hold the D-Pad to move the text\nPress X to go to the next page\nPress Y to go to the previous page\nPress A to zoom in\nPress B to zoom out";
53745374
drawString(NewPosX, NewPosY, Text, FontScale);
53755375

5376-
// Draw the page number
5377-
char MiscBuffer[7];
5378-
sprintf(MiscBuffer, "Page %" PRIu32, PageNumber + 1);
5376+
// Draw the page number and the version
5377+
#ifdef TTYD_JP
5378+
const char *Format = "Page %" PRIu32 "\n\nJPN";
5379+
#elif defined TTYD_US
5380+
const char *Format = "Page %" PRIu32 "\n\nUSA";
5381+
#elif defined TTYD_EU
5382+
const char *Format = "Page %" PRIu32 "\n\nEUR";
5383+
#endif
5384+
5385+
char MiscBuffer[16];
5386+
sprintf(MiscBuffer, Format, PageNumber + 1);
5387+
53795388
drawString(NewPosX + 400, NewPosY, MiscBuffer, FontScale);
53805389
NewPosY += PosYIncrementAmount * 6;
53815390

0 commit comments

Comments
 (0)