Fix speaker config bug (#586)

Co-authored-by: fed <58637860+fedddddd@users.noreply.github.com>
This commit is contained in:
Vlad Loktionov 2023-04-14 06:32:16 +03:00 committed by GitHub
parent 2aebc6437b
commit b1bf3623fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -360,6 +360,9 @@ namespace patches
// Makes mis_cheat saved dvar // Makes mis_cheat saved dvar
dvars::override::register_bool("mis_cheat", 0, game::DVAR_FLAG_SAVED); dvars::override::register_bool("mis_cheat", 0, game::DVAR_FLAG_SAVED);
// Fix speaker config bug
dvars::override::register_int("snd_speakerConfig", 50, 2, 50, game::DVAR_FLAG_SAVED);
// Allow kbam input when gamepad is enabled // Allow kbam input when gamepad is enabled
utils::hook::nop(SELECT_VALUE(0x1AC0CE_b, 0x135EFB_b), 2); utils::hook::nop(SELECT_VALUE(0x1AC0CE_b, 0x135EFB_b), 2);
utils::hook::nop(SELECT_VALUE(0x1A9DDC_b, 0x13388F_b), 6); utils::hook::nop(SELECT_VALUE(0x1A9DDC_b, 0x13388F_b), 6);