mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): partially implement EnableMusic_CVarCallback
This commit is contained in:
parent
1761751768
commit
9fd47fccc6
@ -102,8 +102,19 @@ bool EnableAmbience_CVarCallback(CVar* var, const char* oldValue, const char* va
|
||||
}
|
||||
|
||||
bool EnableMusic_CVarCallback(CVar* var, const char* oldValue, const char* value, void* arg) {
|
||||
// TODO
|
||||
WHOA_UNIMPLEMENTED(true);
|
||||
auto allSoundVar = CVar::Lookup("Sound_EnableAllSound");
|
||||
|
||||
if (allSoundVar) {
|
||||
bool mute = !SStrToInt(value) || !allSoundVar->GetInt();
|
||||
|
||||
SESound::MuteChannelGroup("MUSIC", mute);
|
||||
|
||||
if (mute) {
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EnableSFX_CVarCallback(CVar* var, const char* oldValue, const char* value, void* arg) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user