diff --git a/core/os/os.cpp b/core/os/os.cpp index 3b34f0aa153..89866e40446 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -667,7 +667,8 @@ void OS::set_restart_on_exit(bool p_restart, const List &p_restart_argum bool OS::is_restart_on_exit_set() const { return restart_on_exit; } -List OS::get_restart_on_exit_argumens() const { + +List OS::get_restart_on_exit_arguments() const { return restart_commandline; } diff --git a/core/os/os.h b/core/os/os.h index 2e4888dfba7..4e0cb003fb0 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -502,7 +502,7 @@ public: void set_restart_on_exit(bool p_restart, const List &p_restart_arguments); bool is_restart_on_exit_set() const; - List get_restart_on_exit_argumens() const; + List get_restart_on_exit_arguments() const; OS(); virtual ~OS(); diff --git a/core/project_settings.h b/core/project_settings.h index 28b96a81447..75ebc5acc8a 100644 --- a/core/project_settings.h +++ b/core/project_settings.h @@ -64,16 +64,16 @@ protected: order(0), persist(false), hide_from_editor(false), - overridden(false) { - restart_if_changed = false; + overridden(false), + restart_if_changed(false) { } VariantContainer(const Variant &p_variant, int p_order, bool p_persist = false) : order(p_order), persist(p_persist), variant(p_variant), hide_from_editor(false), - overridden(false) { - restart_if_changed = false; + overridden(false), + restart_if_changed(false) { } }; diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 5e600a95815..8d5c3207430 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1587,9 +1587,9 @@ void EditorInspector::update_tree() { ep->connect("resource_selected", this, "_resource_selected", varray(), CONNECT_DEFERRED); ep->connect("object_id_selected", this, "_object_id_selected", varray(), CONNECT_DEFERRED); if (doc_hint != String()) { - ep->set_tooltip(TTR("Property: ") + property_prefix + p.name + "\n\n" + doc_hint); + ep->set_tooltip(TTR("Property:") + " " + property_prefix + p.name + "\n\n" + doc_hint); } else { - ep->set_tooltip(TTR("Property: ") + property_prefix + p.name); + ep->set_tooltip(TTR("Property:") + " " + property_prefix + p.name); } ep->set_draw_red(draw_red); ep->set_use_folding(use_folding); @@ -2107,6 +2107,7 @@ void EditorInspector::_vscroll_changed(double p_offset) { scroll_cache[object->get_instance_id()] = p_offset; } } + void EditorInspector::set_property_prefix(const String &p_prefix) { property_prefix = p_prefix; } diff --git a/main/main.cpp b/main/main.cpp index 530b264615c..56dd5f73e7c 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1960,7 +1960,7 @@ void Main::cleanup() { if (OS::get_singleton()->is_restart_on_exit_set()) { //attempt to restart with arguments String exec = OS::get_singleton()->get_executable_path(); - List args = OS::get_singleton()->get_restart_on_exit_argumens(); + List args = OS::get_singleton()->get_restart_on_exit_arguments(); OS::ProcessID pid = 0; OS::get_singleton()->execute(exec, args, false, &pid); OS::get_singleton()->set_restart_on_exit(false, List()); //clear list (uses memory) diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp index 3648f6f37aa..cc512263bc4 100644 --- a/platform/android/os_android.cpp +++ b/platform/android/os_android.cpp @@ -123,6 +123,7 @@ void OS_Android::set_opengl_extensions(const char *p_gl_extensions) { ERR_FAIL_COND(!p_gl_extensions); gl_extensions = p_gl_extensions; } + int OS_Android::get_current_video_driver() const { return video_driver_index; } diff --git a/platform/iphone/os_iphone.cpp b/platform/iphone/os_iphone.cpp index 098ad632cf1..a4538a66739 100644 --- a/platform/iphone/os_iphone.cpp +++ b/platform/iphone/os_iphone.cpp @@ -99,7 +99,7 @@ int OSIPhone::get_current_video_driver() const { Error OSIPhone::initialize(const VideoMode &p_desired, int p_video_driver, int p_audio_driver) { - video_driver = p_video_driver; //this may be misleading + video_driver_index = p_video_driver; //this may be misleading RasterizerGLES3::register_config(); RasterizerGLES3::make_current(); diff --git a/platform/server/os_server.cpp b/platform/server/os_server.cpp index 3b1be780d4d..1c17780ad73 100644 --- a/platform/server/os_server.cpp +++ b/platform/server/os_server.cpp @@ -28,16 +28,17 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #include "os_server.h" + #include "drivers/dummy/audio_driver_dummy.h" #include "drivers/dummy/rasterizer_dummy.h" #include "drivers/dummy/texture_loader_dummy.h" #include "print_string.h" #include "servers/visual/visual_server_raster.h" -#include -#include #include "main/main.h" +#include +#include #include int OS_Server::get_video_driver_count() const { @@ -58,6 +59,10 @@ const char *OS_Server::get_audio_driver_name(int p_driver) const { return "Dummy"; } +int OS_Server::get_current_video_driver() const { + return video_driver_index; +} + void OS_Server::initialize_core() { crash_handler.initialize(); @@ -73,6 +78,8 @@ Error OS_Server::initialize(const VideoMode &p_desired, int p_video_driver, int RasterizerDummy::make_current(); + video_driver_index = p_video_driver; // unused in server platform, but should still be initialized + visual_server = memnew(VisualServerRaster); visual_server->init(); diff --git a/platform/server/os_server.h b/platform/server/os_server.h index f1a880ecc2e..8c47bfc5913 100644 --- a/platform/server/os_server.h +++ b/platform/server/os_server.h @@ -30,12 +30,12 @@ #ifndef OS_SERVER_H #define OS_SERVER_H -#include "../x11/crash_handler_x11.h" -#include "../x11/power_x11.h" #include "drivers/dummy/texture_loader_dummy.h" #include "drivers/rtaudio/audio_driver_rtaudio.h" #include "drivers/unix/os_unix.h" #include "main/input_default.h" +#include "platform/x11/crash_handler_x11.h" +#include "platform/x11/power_x11.h" #include "servers/audio_server.h" #include "servers/visual/rasterizer.h" #include "servers/visual_server.h" @@ -66,6 +66,8 @@ class OS_Server : public OS_Unix { CrashHandler crash_handler; + int video_driver_index; + ResourceFormatDummyTexture *resource_loader_dummy; protected: @@ -84,6 +86,8 @@ protected: public: virtual String get_name(); + virtual int get_current_video_driver() const; + virtual void set_cursor_shape(CursorShape p_shape); virtual void set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot);