mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Sound options: add restart audio button
This commit is contained in:
parent
b9d571e14b
commit
f7accbb275
1 changed files with 11 additions and 0 deletions
|
|
@ -164,6 +164,11 @@ void slider_routine(INT32 c)
|
|||
sliders.at(currentMenu->menuitems[itemOn].mvar2).input(c);
|
||||
}
|
||||
|
||||
void restartaudio_routine(INT32)
|
||||
{
|
||||
COM_ImmedExecute("restartaudio");
|
||||
}
|
||||
|
||||
void draw_routine()
|
||||
{
|
||||
int x = currentMenu->x - (menutransition.tics * 48);
|
||||
|
|
@ -248,6 +253,12 @@ menuitem_t OPTIONS_Sound[] =
|
|||
|
||||
{IT_STRING | IT_CVAR, "Hear Tabbed-out", "Keep playing game audio when the window is out of focus (FOCUS LOST).",
|
||||
NULL, {.cvar = &cv_bgaudio}, 0, 0},
|
||||
|
||||
{IT_SPACE | IT_NOTHING, NULL, NULL,
|
||||
NULL, {NULL}, 0, 0},
|
||||
|
||||
{IT_STRING | IT_CALL, "\x85" "Restart Audio", "Reboot the game's audio system.",
|
||||
NULL, {.routine = restartaudio_routine}, 0, 0},
|
||||
};
|
||||
|
||||
menu_t OPTIONS_SoundDef = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue