Skip to content

Commit

Permalink
Now SceneSynchronizerDebugger can properly create it's debugger.py file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Dec 25, 2023
1 parent f37f74d commit 08f7789
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/network_synchronizer/scene_synchronizer_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 08f7789

Please sign in to comment.