mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-07-18 19:41:54 +08:00
Memory leak fix. Start of debug console
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user