Convert Game.cpp to UTF-8

This commit is contained in:
Clownacy 2019-08-25 21:07:03 +01:00
parent bee35b5750
commit 3ab2b11204

View file

@ -683,9 +683,20 @@ BOOL Game(HWND hWnd)
if (!LoadGenericData()) if (!LoadGenericData())
{ {
#ifdef WINDOWS #if defined(NONPORTABLE) && defined(WINDOWS)
MessageBoxA(hWnd, "汎用ファイルが読めない", "エラー", MB_OK); // "Error - Couldn't read general purpose files" #ifdef JAPANESE
#endif 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; return FALSE;
} }
@ -696,9 +707,20 @@ BOOL Game(HWND hWnd)
if (!LoadNpcTable(path)) if (!LoadNpcTable(path))
{ {
#ifdef WINDOWS #if defined(NONPORTABLE) && defined(WINDOWS)
MessageBoxA(hWnd, "NPCテーブルが読めない", "エラー", MB_OK); // "Error - Couldn't read the NPC table" #ifdef JAPANESE
#endif 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; return FALSE;
} }