ref: aa396092b517fbb40bfcbeb4e5e64801814f47b2
parent: 7cff8914528c0f0ba4360c2e9f32cb0a7dc0ff86
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Sep 3 17:39:36 EDT 2020
Translate error messages with FIX_BUGS
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -687,7 +687,11 @@
if (!LoadGenericData())
{
- MessageBoxA(hWnd, "\x94\xC4\x97\x70\x83\x74\x83\x40\x83\x43\x83\x8B\x82\xAA\x93\xC7\x82\xDF\x82\xC8\x82\xA2", "\x83\x47\x83\x89\x81\x5B", MB_OK); /* '汎用ファイルが読めない' and 'エラー' ('Couldn't read general purpose files' and 'Error') in Shift-JIS */
+ #if !defined(JAPANESE) && defined(FIX_BUGS) // The Aeon Genesis translation didn't translate this
+ MessageBoxA(hWnd, "Couldn't read general purpose files", "Error", MB_OK);
+ #else
+ MessageBoxA(hWnd, "\x94\xC4\x97\x70\x83\x74\x83\x40\x83\x43\x83\x8B\x82\xAA\x93\xC7\x82\xDF\x82\xC8\x82\xA2", "\x83\x47\x83\x89\x81\x5B", MB_OK); /* '汎用ファイルが読めない' and 'エラー' in Shift-JIS */
+ #endif
return FALSE;
}
@@ -698,7 +702,11 @@
if (!LoadNpcTable(path))
{
- MessageBoxA(hWnd, "\x4E\x50\x43\x83\x65\x81\x5B\x83\x75\x83\x8B\x82\xAA\x93\xC7\x82\xDF\x82\xC8\x82\xA2", "\x83\x47\x83\x89\x81\x5B", MB_OK); /* 'NPCテーブルが読めない' and 'エラー' ('Couldn't read the NPC table' and 'Error') in Shift-JIS */
+ #if !defined(JAPANESE) && defined(FIX_BUGS) // The Aeon Genesis translation didn't translate this
+ MessageBoxA(hWnd, "Couldn't read the NPC table", "Error", MB_OK);
+ #else
+ MessageBoxA(hWnd, "\x4E\x50\x43\x83\x65\x81\x5B\x83\x75\x83\x8B\x82\xAA\x93\xC7\x82\xDF\x82\xC8\x82\xA2", "\x83\x47\x83\x89\x81\x5B", MB_OK); /* 'NPCテーブルが読めない' and 'エラー' in Shift-JIS */
+ #endif
return FALSE;
}
--- a/src/Profile.cpp
+++ b/src/Profile.cpp
@@ -180,7 +180,11 @@
InitFlags();
if (!TransferStage(13, 200, 10, 8))
{
- MessageBoxA(hWnd, "\x83\x58\x83\x65\x81\x5B\x83\x57\x82\xCC\x93\xC7\x82\xDD\x8D\x9E\x82\xDD\x82\xC9\x8E\xB8\x94\x73", "\x83\x47\x83\x89\x81\x5B", MB_OK); /* 'ステージの読み込みに失敗' and 'エラー' ('Failed to load stage' and 'Error') in Shift-JIS */
+ #if !defined(JAPANESE) && defined(FIX_BUGS) // The Aeon Genesis translation didn't translate this
+ MessageBoxA(hWnd, "Failed to load stage", "Error", MB_OK);
+ #else
+ MessageBoxA(hWnd, "\x83\x58\x83\x65\x81\x5B\x83\x57\x82\xCC\x93\xC7\x82\xDD\x8D\x9E\x82\xDD\x82\xC9\x8E\xB8\x94\x73", "\x83\x47\x83\x89\x81\x5B", MB_OK); /* 'ステージの読み込みに失敗' and 'エラー' in Shift-JIS */
+ #endif
return FALSE;
}
--- a/src/TextScr.cpp
+++ b/src/TextScr.cpp
@@ -739,7 +739,11 @@
if (!TransferStage(z, w, x, y))
{
- MessageBoxA(ghWnd, "\x83\x58\x83\x65\x81\x5B\x83\x57\x82\xCC\x93\xC7\x82\xDD\x8D\x9E\x82\xDD\x82\xC9\x8E\xB8\x94\x73", "\x83\x47\x83\x89\x81\x5B", MB_OK); /* 'ステージの読み込みに失敗' and 'エラー' ('Failed to load stage' and 'Error') in Shift-JIS */
+ #if !defined(JAPANESE) && defined(FIX_BUGS) // The Aeon Genesis translation didn't translate this
+ MessageBoxA(ghWnd, "Failed to load stage", "Error", MB_OK);
+ #else
+ MessageBoxA(ghWnd, "\x83\x58\x83\x65\x81\x5B\x83\x57\x82\xCC\x93\xC7\x82\xDD\x8D\x9E\x82\xDD\x82\xC9\x8E\xB8\x94\x73", "\x83\x47\x83\x89\x81\x5B", MB_OK); /* 'ステージの読み込みに失敗' and 'エラー' in Shift-JIS */
+ #endif
return enum_ESCRETURN_exit;
}
}
@@ -1316,8 +1320,13 @@
else
{
char str_0[0x40];
+ #if !defined(JAPANESE) && defined(FIX_BUGS) // The Aeon Genesis translation didn't translate this
+ sprintf(str_0, "Unknown code:<%c%c%c", gTS.data[gTS.p_read + 1], gTS.data[gTS.p_read + 2], gTS.data[gTS.p_read + 3]);
+ MessageBoxA(NULL, str_0, "Error", MB_OK);
+ #else
sprintf(str_0, "\x95\x73\x96\xBE\x82\xCC\x83\x52\x81\x5B\x83\x68:<%c%c%c", gTS.data[gTS.p_read + 1], gTS.data[gTS.p_read + 2], gTS.data[gTS.p_read + 3]); /* '不明のコード:<%c%c%c' (Unknown code:<%c%c%c) in Shift-JIS */
MessageBoxA(NULL, str_0, "\x83\x47\x83\x89\x81\x5B", MB_OK); /* 'エラー' (Error) in Shift-JIS */
+ #endif
return enum_ESCRETURN_exit;
}
}