summaryrefslogtreecommitdiff
path: root/editor/editor_run.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_run.cpp')
-rw-r--r--editor/editor_run.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/editor_run.cpp b/editor/editor_run.cpp
index 8d01484b34..aa97dd237b 100644
--- a/editor/editor_run.cpp
+++ b/editor/editor_run.cpp
@@ -30,7 +30,7 @@
#include "editor_run.h"
#include "editor_settings.h"
-#include "global_config.h"
+#include "project_settings.h"
EditorRun::Status EditorRun::get_status() const {
@@ -40,7 +40,7 @@ Error EditorRun::run(const String &p_scene, const String p_custom_args, const Li
List<String> args;
- String resource_path = GlobalConfig::get_singleton()->get_resource_path();
+ String resource_path = ProjectSettings::get_singleton()->get_resource_path();
String remote_host = EditorSettings::get_singleton()->get("network/debug/remote_host");
int remote_port = (int)EditorSettings::get_singleton()->get("network/debug/remote_port");
@@ -79,12 +79,12 @@ Error EditorRun::run(const String &p_scene, const String p_custom_args, const Li
Size2 desired_size;
- desired_size.x = GlobalConfig::get_singleton()->get("display/window/size/width");
- desired_size.y = GlobalConfig::get_singleton()->get("display/window/size/height");
+ desired_size.x = ProjectSettings::get_singleton()->get("display/window/size/width");
+ desired_size.y = ProjectSettings::get_singleton()->get("display/window/size/height");
Size2 test_size;
- test_size.x = GlobalConfig::get_singleton()->get("display/window/size/test_width");
- test_size.y = GlobalConfig::get_singleton()->get("display/window/size/test_height");
+ test_size.x = ProjectSettings::get_singleton()->get("display/window/size/test_width");
+ test_size.y = ProjectSettings::get_singleton()->get("display/window/size/test_height");
if (test_size.x > 0 && test_size.y > 0) {
desired_size = test_size;