Skip to content

Commit 6e0330d

Browse files
committed
AutoDetectRes: reset game lang to english
default is french for some reason? odd
1 parent 754eda9 commit 6e0330d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/game_addrs.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace Game
1616
inline int* D3DAdapterNum = nullptr;
1717
inline int* D3DAntialiasing = nullptr;
1818
inline uint8_t* D3DWindowed = nullptr;
19+
inline int* CfgLanguage = nullptr;
1920

2021
inline D3DPRESENT_PARAMETERS* D3DPresentParams = nullptr;
2122
inline IDirect3DDevice9** D3DDevice_ptr = nullptr;
@@ -55,6 +56,7 @@ namespace Game
5556
D3DAdapterNum = Module::exe_ptr<int>(0x55AF00);
5657
D3DAntialiasing = Module::exe_ptr<int>(0x55AF04);
5758
D3DWindowed = Module::exe_ptr<uint8_t>(0x55AF08);
59+
CfgLanguage = Module::exe_ptr<int>(0x340CA0);
5860

5961
D3DPresentParams = Module::exe_ptr<D3DPRESENT_PARAMETERS>(0x49BD64);
6062
D3DDevice_ptr = Module::exe_ptr<IDirect3DDevice9*>(0x49BD60);

src/hooks_misc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class AutoDetectResolution : public Hook
3535
*Game::D3DFogEnabled = true;
3636
*Game::D3DWindowed = true;
3737
*Game::D3DAntialiasing = 2;
38+
*Game::CfgLanguage = 0;
3839

3940
spdlog::info("AutoDetectResolution: default resolution set to {}x{}, windowed enabled, fog enabled, antialiasing 2", width, height);
4041

0 commit comments

Comments
 (0)