Skip to content

Commit

Permalink
Merge pull request godotengine#100510 from adamscott/tmp-dir-create
Browse files Browse the repository at this point in the history
Fix non-creation of editor temporary dir
  • Loading branch information
akien-mga committed Dec 17, 2024
2 parents ed51ec9 + 741f6c7 commit 2b7ea62
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions editor/editor_paths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,17 @@ EditorPaths::EditorPaths() {
}
}

// Temporary dir.
{
if (dir->change_dir(temp_dir) != OK) {
dir->make_dir_recursive(temp_dir);
if (dir->change_dir(temp_dir) != OK) {
ERR_PRINT("Could not create editor temporary directory: " + temp_dir);
paths_valid = false;
}
}
}

// Validate or create project-specific editor data dir,
// including shader cache subdir.
if (Engine::get_singleton()->is_project_manager_hint() || (Main::is_cmdline_tool() && !ProjectSettings::get_singleton()->is_project_loaded())) {
Expand Down

0 comments on commit 2b7ea62

Please sign in to comment.