ref: 3ab2b112049868aa5f936fa3bb3eeee8a1b5e95b
parent: bee35b5750748cf101a6924543e46ec3f9c783ba
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Aug 25 17:07:03 EDT 2019
Convert Game.cpp to UTF-8
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -683,9 +683,20 @@
if (!LoadGenericData())
{
-#ifdef WINDOWS
- MessageBoxA(hWnd, "�ėp�t�@�C�����ǂ߂Ȃ�", "�G���[", MB_OK); // "Error - Couldn't read general purpose files"
-#endif
+ #if defined(NONPORTABLE) && defined(WINDOWS)
+ #ifdef JAPANESE
+ 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);
+ #else
+ MessageBoxA(hWnd, "Couldn't read general purpose files", "Error", MB_OK);
+ #endif
+ #else
+ #ifdef JAPANESE
+ SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "エラー", "汎用ファイルが読めない", NULL);
+ #else
+ SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", "Couldn't read general purpose files", NULL);
+ #endif
+ #endif
+
return FALSE;
}
@@ -696,9 +707,20 @@
if (!LoadNpcTable(path))
{
-#ifdef WINDOWS
- MessageBoxA(hWnd, "NPC�e�[�u�����ǂ߂Ȃ�", "�G���[", MB_OK); // "Error - Couldn't read the NPC table"
-#endif
+ #if defined(NONPORTABLE) && defined(WINDOWS)
+ #ifdef JAPANESE
+ 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);
+ #else
+ MessageBoxA(hWnd, "Couldn't read the NPC table", "Error", MB_OK);
+ #endif
+ #else
+ #ifdef JAPANESE
+ SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "エラー", "NPCテーブルが読めない", NULL);
+ #else
+ SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", "Couldn't read the NPC table", NULL);
+ #endif
+ #endif
+
return FALSE;
}