diff options
Diffstat (limited to 'src/T2DLL/CResFile.cpp')
-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; |