diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-05 19:32:59 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-05 19:32:59 +0100 |
commit | 6f9dd03d70dc9121fb5f898b266d19b411c8459c (patch) | |
tree | 4a5bb6d1262309670c98fc1892684fcf101f6221 | |
parent | 5e61c1280c15ab9969b94cd360cafd4a11b2dd30 (diff) | |
download | t2win-6f9dd03d70dc9121fb5f898b266d19b411c8459c.tar.gz t2win-6f9dd03d70dc9121fb5f898b266d19b411c8459c.zip |
define kludge to allow it to run on non-japanese windows
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/CResFile.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/T2DLL/CResFile.cpp b/src/T2DLL/CResFile.cpp index 310e45d..27777a9 100644 --- a/src/T2DLL/CResFile.cpp +++ b/src/T2DLL/CResFile.cpp @@ -111,7 +111,7 @@ BOOL CResFile::OpenResource(const char* path, int name, int type) { delete subPluginFile; mIsSubPlugin = true; - } else if (memcmp(magic, "PE", 2) == 0) { + } else if (memcmp(magic, "MZ", 2) == 0) { CPEFile pe; if (!pe.Open(path, CFile::modeRead)) return false; @@ -124,7 +124,11 @@ BOOL CResFile::OpenResource(const char* path, int name, int type) { buf[4] = 0; CString path; - unsigned short langID = GetUserDefaultLangID(); +#ifdef HACKS + unsigned short langID = 1041; +#else + unsigned short langID = GetUserDefaultLangID(); +#endif path.Format("\\.rsrc\\%s\\#%d\\#%d", buf, name, langID); if (!pe.Seek(path)) return false; |