Skip to content

Commit

Permalink
Replace Main::is_project_manager() with `Engine::get_singleton()->i…
Browse files Browse the repository at this point in the history
…s_project_manager_hint()`. See: godotengine/godot#52742
  • Loading branch information
chippmann committed Nov 15, 2022
1 parent 61d5d00 commit 3c8f1e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gd_kotlin_configuration.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#include "gd_kotlin_configuration.h"
#include "long_string_queue.h"
#include "main/main.h"
#include "core/config/engine.h"

#include <core/io/json.h>
#include <core/io/file_access.h>

String GdKotlinConfiguration::to_json() {
Dictionary result;
Expand Down Expand Up @@ -67,7 +66,7 @@ GdKotlinConfiguration GdKotlinConfiguration::load_gd_kotlin_configuration_or_def
} else {
#ifdef TOOLS_ENABLED
configuration = GdKotlinConfiguration();
if (Main::is_project_manager()) {
if (Engine::get_singleton()->is_project_manager_hint()) {
return configuration;
}
Ref<FileAccess> file{FileAccess::open(configuration_path, FileAccess::WRITE)};
Expand Down

0 comments on commit 3c8f1e4

Please sign in to comment.