diff --git a/src/Core/Game.bf b/src/Core/Game.bf index 182bcac..239f2e0 100644 --- a/src/Core/Game.bf +++ b/src/Core/Game.bf @@ -20,6 +20,7 @@ namespace Strawberry public readonly int Width; public readonly int Height; public readonly int WindowScale; + public readonly String ContentRoot; private Scene scene; private Scene switchToScene; @@ -44,9 +45,14 @@ namespace Strawberry Width = width; Height = height; 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 .();