Allow opening a scene on launch

+ don't resize on load/new scene
This commit is contained in:
Simon Lübeß
2023-07-17 02:19:49 +02:00
parent 1641bafd06
commit 28155ec92c
4 changed files with 56 additions and 58 deletions
+4 -4
View File
@@ -9,9 +9,9 @@ namespace GlitchyEditor
{
EditorContentManager _contentManager;
public this()
public this(String[] args)
{
PushLayer(new EditorLayer(_contentManager));
PushLayer(new EditorLayer(args, _contentManager));
}
protected override IContentManager InitContentManager()
@@ -39,9 +39,9 @@ namespace GlitchyEditor
}
[Export, LinkName("CreateApplication")]
public static Application CreateApplication()
public static Application CreateApplication(String[] args)
{
return new EditorApp();
return new EditorApp(args);
}
}
}