mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 00:20:38 +00:00
- fixed: The menu descriptors were not cleared on restart, leaving some menu data behind.
This commit is contained in:
parent
8180d34765
commit
42a34ddd58
2 changed files with 3 additions and 1 deletions
|
@ -132,6 +132,7 @@ extern void M_SetDefaultMode ();
|
|||
extern void G_NewInit ();
|
||||
extern void SetupPlayerClasses ();
|
||||
extern void HUD_InitHud();
|
||||
void DeinitMenus();
|
||||
const FIWADInfo *D_FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad);
|
||||
|
||||
// PUBLIC FUNCTION PROTOTYPES ----------------------------------------------
|
||||
|
@ -2736,6 +2737,7 @@ void D_DoomMain (void)
|
|||
C_ClearAliases(); // CCMDs won't be reinitialized so these need to be deleted here
|
||||
DestroyCVarsFlagged(CVAR_MOD); // Delete any cvar left by mods
|
||||
FS_Close(); // destroy the global FraggleScript.
|
||||
DeinitMenus();
|
||||
|
||||
GC::FullGC(); // clean up before taking down the object list.
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ DEFINE_ACTION_FUNCTION(FOptionValues, GetText)
|
|||
}
|
||||
|
||||
|
||||
static void DeinitMenus()
|
||||
void DeinitMenus()
|
||||
{
|
||||
{
|
||||
FOptionMap::Iterator it(OptionValues);
|
||||
|
|
Loading…
Reference in a new issue