Răsfoiți Sursa

Merge pull request #55072 from KoBeWi/untitled_goose_project

Rémi Verschelde 3 ani în urmă
părinte
comite
e7216d4085
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      drivers/unix/os_unix.cpp
  2. 1 1
      platform/windows/os_windows.cpp

+ 1 - 1
drivers/unix/os_unix.cpp

@@ -473,7 +473,7 @@ String OS_Unix::get_user_data_dir() const {
 		}
 	}
 
-	return ProjectSettings::get_singleton()->get_resource_path();
+	return get_data_path().plus_file(get_godot_dir_name()).plus_file("app_userdata").plus_file("[unnamed project]");
 }
 
 String OS_Unix::get_executable_path() const {

+ 1 - 1
platform/windows/os_windows.cpp

@@ -760,7 +760,7 @@ String OS_Windows::get_user_data_dir() const {
 		}
 	}
 
-	return ProjectSettings::get_singleton()->get_resource_path();
+	return get_data_path().plus_file(get_godot_dir_name()).plus_file("app_userdata").plus_file("[unnamed project]");
 }
 
 String OS_Windows::get_unique_id() const {