소스 검색

Merge pull request #26612 from akien-mga/mkdir-system-data-path

Fix creating editor data, config and cache paths
Rémi Verschelde 6 년 전
부모
커밋
0952522e8b
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      editor/editor_settings.cpp

+ 0 - 6
editor/editor_settings.cpp

@@ -780,12 +780,6 @@ void EditorSettings::create() {
 		// Validate/create data dir and subdirectories
 
 		dir = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
-		if (dir->change_dir(data_path) != OK) {
-			ERR_PRINT("Cannot find path for data directory!");
-			memdelete(dir);
-			goto fail;
-		}
-
 		if (dir->change_dir(data_dir) != OK) {
 			dir->make_dir_recursive(data_dir);
 			if (dir->change_dir(data_dir) != OK) {