aboutsummaryrefslogtreecommitdiff
path: root/src/nomute.c
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-11-15 20:24:41 +0000
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-11-15 20:24:41 +0000
commitc15101df02685a5d26f4b130f7b559eb7ed7f74f (patch)
tree5803259d20a291278c9cc7dfd6bc346198f0edb0 /src/nomute.c
parent650bb761d3e5af3f8fa19ac8d22864cc0360d085 (diff)
downloadsst-c15101df02685a5d26f4b130f7b559eb7ed7f74f.tar.gz
sst-c15101df02685a5d26f4b130f7b559eb7ed7f74f.zip
Deal with CON_HIDDEN not existing in OE
Pretty hacky for now, but not the worst thing in the world. Can always be tidied up later.
Diffstat (limited to 'src/nomute.c')
-rw-r--r--src/nomute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nomute.c b/src/nomute.c
index 8cdb823..9b69dad 100644
--- a/src/nomute.c
+++ b/src/nomute.c
@@ -34,7 +34,7 @@ FEATURE("inactive window audio control")
DEF_CVAR_UNREG(snd_mute_losefocus,
"Keep playing audio while tabbed out (SST reimplementation)", 1,
- CON_ARCHIVE | CON_HIDDEN)
+ CON_ARCHIVE | CON_INIT_HIDDEN)
static IDirectSoundVtbl *ds_vt = 0;
static typeof(ds_vt->CreateSoundBuffer) orig_CreateSoundBuffer;
@@ -81,7 +81,7 @@ INIT {
orig_CreateSoundBuffer = ds_vt->CreateSoundBuffer;
ds_vt->CreateSoundBuffer = &hook_CreateSoundBuffer;
- snd_mute_losefocus->base.flags &= ~CON_HIDDEN;
+ con_unhide(&snd_mute_losefocus->base);
struct con_cmd *snd_restart = con_findcmd("snd_restart");
if_hot (snd_restart) {
snd_restart_cb = con_getcmdcbv1(snd_restart);