From 84195691c63fe6114f678bbe5de1e5d18c2aebc4 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Wed, 1 Oct 2025 20:04:37 -0500 Subject: [PATCH] feat(client): register useEnglishAudio var in InitializeGlobal --- src/client/Client.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index b5bc7c0..81479ef 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -224,7 +224,8 @@ int32_t InitializeGlobal() { auto localeVar = CVar::Register( "locale", "Set the game locale", - 0x0, "****", + 0x0, + "****", &LocaleChangedCallback, DEFAULT, false, @@ -236,7 +237,17 @@ int32_t InitializeGlobal() { 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()) { // sub_4036B0(v24, 0, a2, (int)v2, (char)v24);