mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-02-21 12:28:27 +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 Width;
|
||||||
public readonly int Height;
|
public readonly int Height;
|
||||||
public readonly int WindowScale;
|
public readonly int WindowScale;
|
||||||
|
public readonly String ContentRoot;
|
||||||
|
|
||||||
private Scene scene;
|
private Scene scene;
|
||||||
private Scene switchToScene;
|
private Scene switchToScene;
|
||||||
@ -44,9 +45,14 @@ namespace Strawberry
|
|||||||
Width = width;
|
Width = width;
|
||||||
Height = height;
|
Height = height;
|
||||||
WindowScale = windowScale;
|
WindowScale = windowScale;
|
||||||
|
|
||||||
screenRect = SDL.Rect(0, 0, width * windowScale, height * windowScale);
|
screenRect = SDL.Rect(0, 0, width * windowScale, height * windowScale);
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
ContentRoot = "../../../src/Content/";
|
||||||
|
#else
|
||||||
|
ContentRoot = "Content/";
|
||||||
|
#endif
|
||||||
|
|
||||||
String exePath = scope .();
|
String exePath = scope .();
|
||||||
Environment.GetExecutableFilePath(exePath);
|
Environment.GetExecutableFilePath(exePath);
|
||||||
String exeDir = scope .();
|
String exeDir = scope .();
|
||||||
|
Loading…
Reference in New Issue
Block a user