mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 10:32:54 -05:00
Merge pull request #100510 from adamscott/tmp-dir-create
Fix non-creation of editor temporary dir
This commit is contained in:
commit
2b7ea6223b
1 changed files with 11 additions and 0 deletions
|
@ -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())) {
|
||||
|
|
Loading…
Reference in a new issue