Skip to content

Commit

Permalink
Move call to Core._destroy() to appropriate place.
Browse files Browse the repository at this point in the history
  • Loading branch information
intorr committed Mar 8, 2018
1 parent 0b190db commit 5a5226b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/xrEngine/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ ENGINE_API int RunApplication()

Engine.External.Initialize();
Startup();
Core._destroy();
// check for need to execute something external
if (/*xr_strlen(g_sLaunchOnExit_params) && */ xr_strlen(g_sLaunchOnExit_app))
{
Expand Down
6 changes: 5 additions & 1 deletion src/xr_3da/entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ int entry_point(pcstr commandLine)
}
Core.Initialize("OpenXRay", nullptr, true, *fsgame ? fsgame : nullptr);

return RunApplication();
auto result = RunApplication();

Core._destroy();

return result;
}

int StackoverflowFilter(const int exceptionCode)
Expand Down

0 comments on commit 5a5226b

Please sign in to comment.