mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-02-20 11:58:28 +08:00
Game.ContentRoot
This commit is contained in:
parent
f9455366f0
commit
6a278dc810
@ -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 .();
|
||||
|
Loading…
Reference in New Issue
Block a user