feat(client): register useEnglishAudio var in InitializeGlobal

This commit is contained in:
fallenoak 2025-10-01 20:04:37 -05:00
parent 5b9950c594
commit 84195691c6
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -224,7 +224,8 @@ int32_t InitializeGlobal() {
auto localeVar = CVar::Register( auto localeVar = CVar::Register(
"locale", "locale",
"Set the game locale", "Set the game locale",
0x0, "****", 0x0,
"****",
&LocaleChangedCallback, &LocaleChangedCallback,
DEFAULT, DEFAULT,
false, false,
@ -236,7 +237,17 @@ int32_t InitializeGlobal() {
localeVar->Set("enUS", true, false, false, true); localeVar->Set("enUS", true, false, false, true);
} }
// CVar::Register("useEnglishAudio", "override the locale and use English audio", 0, "0", 0, 5, 0, 0, 0); CVar::Register(
"useEnglishAudio",
"override the locale and use English audio",
0x0,
"0",
nullptr,
DEFAULT,
false,
nullptr,
false
);
// if (sub_422140()) { // if (sub_422140()) {
// sub_4036B0(v24, 0, a2, (int)v2, (char)v24); // sub_4036B0(v24, 0, a2, (int)v2, (char)v24);