-Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user