From 1428fb37705542c2d4017f236413f6f33029eb73 Mon Sep 17 00:00:00 2001 From: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com> Date: Sun, 31 Oct 2021 13:18:21 +0300 Subject: [PATCH] Added Hebrew translation. Switched to MessageBoxW in some places. --- SpaceCadetPinball/Sound.cpp | 2 +- SpaceCadetPinball/SpaceCadetPinball.rc | Bin 478262 -> 512962 bytes SpaceCadetPinball/high_score.cpp | 5 ++--- SpaceCadetPinball/options.cpp | 1 + SpaceCadetPinball/options.h | 1 + SpaceCadetPinball/resource.h | 2 +- SpaceCadetPinball/winmain.cpp | 24 +++++++++++++++++------- 7 files changed, 23 insertions(+), 12 deletions(-) diff --git a/SpaceCadetPinball/Sound.cpp b/SpaceCadetPinball/Sound.cpp index 2eb61f9..0225bec 100644 --- a/SpaceCadetPinball/Sound.cpp +++ b/SpaceCadetPinball/Sound.cpp @@ -49,7 +49,7 @@ int Sound::Init(HINSTANCE hInstance, int voices, void (* someFuncPtr)(int, MIXWA { /*FT does not have the file, defaults work OK*/ if (!pb::FullTiltMode) - MessageBoxA(winmain::hwnd_frame, pinball::get_rc_string(42, 0), "", 0x2000u); + MessageBoxW(winmain::hwnd_frame, pinball::get_rc_Wstring(42, 0), L"", 0x2000u); } WndClass.style = 0; diff --git a/SpaceCadetPinball/SpaceCadetPinball.rc b/SpaceCadetPinball/SpaceCadetPinball.rc index cdb42413ae48d4a0716ef73a8ea46aa8f81073ee..8cc6b0fc8d24146c4969708e72d189de5c679b69 100644 GIT binary patch delta 3361 zcmbVPTWnNS6g_wDJyR^D9cn=sUN-~>ByH)?@{B-%@X`X6hd>ksA{Zhe57)YfOIx1NH0RE}=bXLw z+Iz3P&*`@xj`;rEsQSN*qi1u6t`dvH67iy#Czc6Yl!!eTlQ6>XbQ=e|4GtfM8R<5x z*QcoZBgP+2)wzG1lJFsQ>59*av`@2!9}d4JHi}JRv)GDXTRc>$cv)=6*eXUJ?7m`Q z$Vm4U|G;-u%@BEd*g^LY+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D*LJ>>)o5VI~%Il(WinExec(cmdLine, 5u)) < 32) { - auto caption = pinball::get_rc_string(170, 0); - auto text = pinball::get_rc_string(171, 0); - MessageBoxA(hwnd_frame, text, caption, 0x2010u); + auto caption = pinball::get_rc_Wstring(170, 0); + auto text = pinball::get_rc_Wstring(171, 0); + MessageBoxW(hwnd_frame, text, caption, 0x2010u); } memory::free(tmpBuf); } @@ -774,9 +784,9 @@ void winmain::memalloc_failure() midi::music_stop(); Sound::Close(); gdrv::uninit(); - char* caption = pinball::get_rc_string(170, 0); - char* text = pinball::get_rc_string(179, 0); - MessageBoxA(nullptr, text, caption, 0x2030u); + auto caption = pinball::get_rc_Wstring(170, 0); + auto text = pinball::get_rc_Wstring(179, 0); + MessageBoxW(nullptr, text, caption, 0x2030u); _exit(1); }