summaryrefslogtreecommitdiff
path: root/src/T2DLL
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-10 02:10:20 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-10 02:10:20 +0100
commit0f3cba6fcea0ffd511dfe3275d57a5b9e69be5be (patch)
tree7f9caca3a050552001e87fe5b6bf7d7149afaf1c /src/T2DLL
parentbd99f088a53686119c9bbfc0baf34128cd0eda2f (diff)
downloadt2win-0f3cba6fcea0ffd511dfe3275d57a5b9e69be5be.tar.gz
t2win-0f3cba6fcea0ffd511dfe3275d57a5b9e69be5be.zip
build a barely-tested Burger plugin
Diffstat (limited to 'src/T2DLL')
-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);