Memory leak fix. Start of debug console

This commit is contained in:
Matt Thorson
2020-06-15 23:13:29 -07:00
parent f1285179cd
commit f325ed2598
5 changed files with 59 additions and 13 deletions

View File

@ -20,7 +20,6 @@ namespace Strawberry
public readonly int Width;
public readonly int Height;
public readonly int WindowScale;
public readonly String ContentRoot;
private Scene scene;
private Scene switchToScene;
@ -49,12 +48,6 @@ namespace Strawberry
WindowScale = windowScale;
screenRect = SDL.Rect(0, 0, width * windowScale, height * windowScale);
#if DEBUG
ContentRoot = "../../../src/Content/";
#else
ContentRoot = "Content/";
#endif
String exePath = scope .();
Environment.GetExecutableFilePath(exePath);
String exeDir = scope .();
@ -85,6 +78,7 @@ namespace Strawberry
BuildTypeLists();
Assets.LoadAll();
Strawberry.Console.Init();
}
public ~this()
@ -107,6 +101,7 @@ namespace Strawberry
Assets.DisposeAll();
DisposeTypeLists();
Input.[Friend]Dispose();
Strawberry.Console.Dispose();
Game = null;
}