mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Menus/Video/Advanced: message box to confirm switching to Legacy GL
This commit is contained in:
parent
88ac62241f
commit
cd3aa10cd0
1 changed files with 33 additions and 1 deletions
|
|
@ -176,9 +176,41 @@ void M_ChangeCvarDirect(INT32 choice, consvar_t *cv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void M_ChangeCvarResponse(INT32 choice)
|
||||||
|
{
|
||||||
|
if (choice != MA_YES)
|
||||||
|
return;
|
||||||
|
|
||||||
|
consvar_t *cvar = currentMenu->menuitems[itemOn].itemaction.cvar;
|
||||||
|
M_ChangeCvarDirect(choice, cvar);
|
||||||
|
}
|
||||||
|
|
||||||
static void M_ChangeCvar(INT32 choice)
|
static void M_ChangeCvar(INT32 choice)
|
||||||
{
|
{
|
||||||
M_ChangeCvarDirect(choice, currentMenu->menuitems[itemOn].itemaction.cvar);
|
consvar_t *cvar = currentMenu->menuitems[itemOn].itemaction.cvar;
|
||||||
|
|
||||||
|
#ifdef HWRENDER
|
||||||
|
if (cvar == &cv_renderer &&
|
||||||
|
// Switching from Software [to Legacy GL]
|
||||||
|
cv_renderer.value == 1 &&
|
||||||
|
// Not setting to default (ie changing the value)
|
||||||
|
choice != -1)
|
||||||
|
{
|
||||||
|
M_StartMessage(
|
||||||
|
"Switching to Legacy GL",
|
||||||
|
"Legacy GL is \x85" "INCOMPLETE and BROKEN.\x80\n"
|
||||||
|
"\n"
|
||||||
|
"ARE YOU SURE?",
|
||||||
|
M_ChangeCvarResponse,
|
||||||
|
MM_YESNO,
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
M_ChangeCvarDirect(choice, cvar);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *M_QueryCvarAction(const char *replace)
|
static const char *M_QueryCvarAction(const char *replace)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue