- the big cleanup of the exit cleanup is done!
atterm is gone and only a few system-side functions use atexit. All game side cleanup is performed in D_DoomMain now.
This commit is contained in:
parent
6f821a9198
commit
2e7af1338c
37 changed files with 82 additions and 344 deletions
|
|
@ -64,7 +64,6 @@
|
|||
#include "actorinlines.h"
|
||||
#include "g_game.h"
|
||||
#include "i_system.h"
|
||||
#include "atterm.h"
|
||||
|
||||
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
|
||||
|
||||
|
|
@ -154,7 +153,6 @@ DAngle viewpitch;
|
|||
DEFINE_GLOBAL(LocalViewPitch);
|
||||
|
||||
// CODE --------------------------------------------------------------------
|
||||
static void R_Shutdown ();
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
|
|
@ -380,8 +378,6 @@ FRenderer *CreateSWRenderer();
|
|||
|
||||
void R_Init ()
|
||||
{
|
||||
atterm(R_Shutdown);
|
||||
|
||||
StartScreen->Progress();
|
||||
R_InitTranslationTables ();
|
||||
R_SetViewSize (screenblocks);
|
||||
|
|
@ -400,12 +396,10 @@ void R_Init ()
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
static void R_Shutdown ()
|
||||
void R_Shutdown ()
|
||||
{
|
||||
if (SWRenderer != nullptr) delete SWRenderer;
|
||||
SWRenderer = nullptr;
|
||||
R_DeinitTranslationTables();
|
||||
R_DeinitColormaps ();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue