Removed useless code, fixed early SDL quitting.

This commit is contained in:
Harrison Deng 2020-07-10 18:05:14 -05:00
parent 98869c2d38
commit f4aa9b7ffb

View File

@ -16,7 +16,6 @@ namespace SlatedGameToolkit.Framework {
/// The main engine that will host the game loop.
/// </summary>
public static class GameEngine {
public static bool Debugging { get; set; }
private static readonly object ignitionLock = new object();
private static readonly object deltaUpdateLock = new object();
private static Thread thread;
@ -182,9 +181,9 @@ namespace SlatedGameToolkit.Framework {
}
stopped = true;
manager.Deinitialize();
SDL.SDL_Quit();
SoLoudEngine.deinit();
WindowContextsManager.DisposeAllWindowContexts();
SDL.SDL_Quit();
Logger.Log("Game engine has gracefully stopped.");
Logger.FlushListeners();
}