[Scummvm-git-logs] scummvm master -> dd0d6acdb601552500ffccbbe9f8465bb8f9cb0b
alxpnv
noreply at scummvm.org
Mon Feb 20 07:51:01 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
dd0d6acdb6 ASYLUM: Support hebrew fan-translation
Commit: dd0d6acdb601552500ffccbbe9f8465bb8f9cb0b
https://github.com/scummvm/scummvm/commit/dd0d6acdb601552500ffccbbe9f8465bb8f9cb0b
Author: BLooperZ (blooperz at users.noreply.github.com)
Date: 2023-02-20T10:50:57+03:00
Commit Message:
ASYLUM: Support hebrew fan-translation
Changed paths:
engines/asylum/detection_tables.h
engines/asylum/system/text.cpp
diff --git a/engines/asylum/detection_tables.h b/engines/asylum/detection_tables.h
index de9b9ae5f2f..12d6fcd99b3 100644
--- a/engines/asylum/detection_tables.h
+++ b/engines/asylum/detection_tables.h
@@ -280,6 +280,21 @@ static const ADGameDescription gameDescriptions[] = {
ADGF_DROPPLATFORM,
GUIO0()
},
+ {
+ // Hebrew fanmade translation (GOG version)
+ "asylum",
+ "Fanmade",
+ {
+ {"SNTRM.DAT", 0, "7cfcc457c1f579fbf9878ac175d29374", 8930},
+ {"RES.005", 0, "02c06cb1cb4038203c027b53a5d71c05", 18064925},
+ {"SCN.006", 0, "3a5b54da08198012dc0614114782d5fb", 2918330},
+ AD_LISTEND
+ },
+ Common::HE_ISR,
+ Common::kPlatformWindows,
+ ADGF_DROPPLATFORM,
+ GUIO0()
+ },
{
// English Demo
"asylum",
diff --git a/engines/asylum/system/text.cpp b/engines/asylum/system/text.cpp
index ee655aeece8..b990ac96adb 100644
--- a/engines/asylum/system/text.cpp
+++ b/engines/asylum/system/text.cpp
@@ -20,6 +20,7 @@
*/
#include "common/rational.h"
+#include "common/unicode-bidi.h"
#include "asylum/system/text.h"
@@ -138,6 +139,8 @@ void Text::draw(const char *text) {
if (!text)
return;
+ if (_vm->getLanguage() == Common::HE_ISR)
+ text = Common::convertBiDiString(text, Common::kWindows1255).c_str();
while (*text) {
drawChar(text[0]);
text++;
@@ -151,6 +154,8 @@ void Text::draw(const char *text, int16 length) {
if (!text)
return;
+ if (_vm->getLanguage() == Common::HE_ISR)
+ text = Common::convertBiDiString(Common::String(text, length), Common::kWindows1255).c_str();
for (int16 i = 0; i < length; i++)
drawChar(text[i]);
}
More information about the Scummvm-git-logs
mailing list