From 08f7789e407673f424e4cb466d52914612066676 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 25 Dec 2023 20:48:32 +0100 Subject: [PATCH] Now SceneSynchronizerDebugger can properly create it's debugger.py file. --- .../scene_synchronizer_debugger.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/network_synchronizer/scene_synchronizer_debugger.cpp b/modules/network_synchronizer/scene_synchronizer_debugger.cpp index 491ce3a07..2a29d481d 100644 --- a/modules/network_synchronizer/scene_synchronizer_debugger.cpp +++ b/modules/network_synchronizer/scene_synchronizer_debugger.cpp @@ -247,6 +247,16 @@ void SceneSynchronizerDebugger::prepare_dumping(int p_peer, SceneTree *p_scene_t void SceneSynchronizerDebugger::setup_debugger_python_ui() { #ifdef DEBUG_ENABLED + + DirAccess *dir = DirAccess::create_for_path(main_dump_directory_path); + + Error e; + e = dir->make_dir_recursive(main_dump_directory_path); + + memdelete(dir); + + ERR_FAIL_COND_MSG(e != OK, "Can't create the `" + main_dump_directory_path + "` directory."); + // Verify if file exists. const String path = main_dump_directory_path + "/debugger.py";