You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
-Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
/*************************************************************************/
|
||||
#include "script_debugger_remote.h"
|
||||
|
||||
#include "global_config.h"
|
||||
#include "project_settings.h"
|
||||
#include "io/ip.h"
|
||||
#include "os/input.h"
|
||||
#include "os/os.h"
|
||||
@@ -130,7 +130,7 @@ void ScriptDebuggerRemote::debug(ScriptLanguage *p_script, bool p_can_continue)
|
||||
ERR_FAIL();
|
||||
}
|
||||
|
||||
OS::get_singleton()->enable_for_stealing_focus(GlobalConfig::get_singleton()->get("editor_pid"));
|
||||
OS::get_singleton()->enable_for_stealing_focus(ProjectSettings::get_singleton()->get("editor_pid"));
|
||||
|
||||
packet_peer_stream->put_var("debug_enter");
|
||||
packet_peer_stream->put_var(2);
|
||||
@@ -952,7 +952,7 @@ ScriptDebuggerRemote::ScriptDebuggerRemote() {
|
||||
phl.userdata = this;
|
||||
add_print_handler(&phl);
|
||||
requested_quit = false;
|
||||
performance = GlobalConfig::get_singleton()->get_singleton_object("Performance");
|
||||
performance = ProjectSettings::get_singleton()->get_singleton_object("Performance");
|
||||
last_perf_time = 0;
|
||||
poll_every = 0;
|
||||
request_scene_tree = NULL;
|
||||
@@ -967,7 +967,7 @@ ScriptDebuggerRemote::ScriptDebuggerRemote() {
|
||||
eh.userdata = this;
|
||||
add_error_handler(&eh);
|
||||
|
||||
profile_info.resize(CLAMP(int(GlobalConfig::get_singleton()->get("debug/settings/profiler/max_functions")), 128, 65535));
|
||||
profile_info.resize(CLAMP(int(ProjectSettings::get_singleton()->get("debug/settings/profiler/max_functions")), 128, 65535));
|
||||
profile_info_ptrs.resize(profile_info.size());
|
||||
profiling = false;
|
||||
max_frame_functions = 16;
|
||||
|
||||
Reference in New Issue
Block a user