From 0f3cba6fcea0ffd511dfe3275d57a5b9e69be5be Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Mon, 10 Jul 2023 02:10:20 +0100 Subject: build a barely-tested Burger plugin --- src/T2DLL/CResFile.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/T2DLL') 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); -- cgit v1.2.3