shithub: cstory

Download patch

ref: bee35b5750748cf101a6924543e46ec3f9c783ba
parent: aaff8875782a9a1b6fc45f55e226b2352bb833e3
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Aug 25 16:47:54 EDT 2019

Convert Profile.cpp to UTF-8

The MessageBoxA strings are ShiftJIS-encoded, but to avoid compiler
warnings (from Clang, namely), I'm using those weird '\x' things.

--- a/src/Profile.cpp
+++ b/src/Profile.cpp
@@ -256,7 +256,7 @@
 	{
 		#if defined(NONPORTABLE) && defined(WINDOWS)
 			#ifdef JAPANESE
-			MessageBoxA(hWnd, "�X�e�[�W�̓ǂݍ��݂Ɏ��s", "�G���[", MB_OK);
+			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);
 			#else
 			MessageBoxA(hWnd, "Failed to load stage", "Error", MB_OK);
 			#endif
@@ -264,7 +264,7 @@
 			(void)hWnd;
 
 			#ifdef JAPANESE
-			SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "�G���[", "�X�e�[�W�̓ǂݍ��݂Ɏ��s", NULL);
+			SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "エラー", "ステージの読み込みに失敗", NULL);
 			#else
 			SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", "Failed to load stage", NULL);
 			#endif