mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-26 21:57:16 +01:00
Now SceneSynchronizerDebugger can properly create it's debugger.py file.
This commit is contained in:
parent
f37f74d7f9
commit
08f7789e40
@ -247,6 +247,16 @@ void SceneSynchronizerDebugger::prepare_dumping(int p_peer, SceneTree *p_scene_t
|
|||||||
|
|
||||||
void SceneSynchronizerDebugger::setup_debugger_python_ui() {
|
void SceneSynchronizerDebugger::setup_debugger_python_ui() {
|
||||||
#ifdef DEBUG_ENABLED
|
#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.
|
// Verify if file exists.
|
||||||
const String path = main_dump_directory_path + "/debugger.py";
|
const String path = main_dump_directory_path + "/debugger.py";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user