summaryrefslogtreecommitdiff
path: root/src/T2DLL/CResFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/CResFile.cpp')
-rw-r--r--src/T2DLL/CResFile.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/T2DLL/CResFile.cpp b/src/T2DLL/CResFile.cpp
index f481729..29b461b 100644
--- a/src/T2DLL/CResFile.cpp
+++ b/src/T2DLL/CResFile.cpp
@@ -127,12 +127,19 @@ BOOL CResFile::OpenResource(const char* path, int name, int type) {
CString path;
#ifdef HACKS
unsigned short langID = 1041;
+ path.Format("\\.rsrc\\%s\\#%d\\#%d", buf, name, langID);
+ if (!pe.Seek(path)) {
+ langID = 2057;
+ path.Format("\\.rsrc\\%s\\#%d\\#%d", buf, name, langID);
+ if (!pe.Seek(path))
+ return false;
+ }
#else
unsigned short langID = GetUserDefaultLangID();
+ path.Format("\\.rsrc\\%s\\#%d\\#%d", buf, name, langID);
+ if (!pe.Seek(path))
+ return false;
#endif
- path.Format("\\.rsrc\\%s\\#%d\\#%d", buf, name, langID);
- if (!pe.Seek(path))
- return false;
mRemaining = pe.GetLength();
mBuffer = (char *) malloc(mRemaining + 1);