- tried to make 'restart' CCMD work again.
This requires quite a bit more thorough cleanup. I got it to the point where the titlepic appears after restarting, but it still crashes when starting the game so there's more data that needs to be cleaned up...
This commit is contained in:
parent
450e5aec52
commit
91b05366d6
4 changed files with 26 additions and 15 deletions
|
|
@ -1973,8 +1973,6 @@ static void D_DoomInit()
|
|||
M_FindResponseFile ();
|
||||
|
||||
atterm(FinalGC);
|
||||
PClass::StaticInit();
|
||||
PType::StaticInit();
|
||||
|
||||
// Combine different file parameters with their pre-switch bits.
|
||||
Args->CollectFiles("-deh", ".deh");
|
||||
|
|
@ -2261,7 +2259,8 @@ void D_DoomMain (void)
|
|||
|
||||
do
|
||||
{
|
||||
InitGlobalSymbols();
|
||||
PClass::StaticInit();
|
||||
PType::StaticInit();
|
||||
|
||||
if (restart)
|
||||
{
|
||||
|
|
@ -2637,6 +2636,8 @@ void D_DoomMain (void)
|
|||
S_Shutdown(); // free all channels and delete playlist
|
||||
C_ClearAliases(); // CCMDs won't be reinitialized so these need to be deleted here
|
||||
DestroyCVarsFlagged(CVAR_MOD); // Delete any cvar left by mods
|
||||
ReleaseGlobalSymbols();
|
||||
PClass::StaticShutdown();
|
||||
|
||||
GC::FullGC(); // perform one final garbage collection before deleting the class data
|
||||
restart++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue