Skip to content

Commit

Permalink
Initialize the shell class before anything else.
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamyCecil committed Oct 16, 2023
1 parent 30fdfae commit 8a8db08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Engine/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ ENGINE_API void SE_InitEngine(CTString strGameID)
_pAnimSetStock = new CStock_CAnimSet;
_pShaderStock = new CStock_CShader;

// init main shell
_pShell = new CShell;
_pShell->Initialize();

_pTimer = new CTimer;
_pGfx = new CGfxLibrary;
_pSound = new CSoundLibrary;
Expand Down Expand Up @@ -332,10 +336,6 @@ ENGINE_API void SE_InitEngine(CTString strGameID)
}
CPrintF("\n");

// init main shell
_pShell = new CShell;
_pShell->Initialize();

// report CPU
CPrintF(TRANS("Detecting CPU...\n"));
DetectCPUWrapper();
Expand Down

0 comments on commit 8a8db08

Please sign in to comment.