From 6f9dd03d70dc9121fb5f898b266d19b411c8459c Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 5 Jul 2023 19:32:59 +0100 Subject: define kludge to allow it to run on non-japanese windows --- src/T2DLL/CResFile.cpp | 8 ++++++-- 1 file 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; -- cgit v1.2.3