summaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-11-18 01:36:13 +0100
committerkobewi <kobewi4e@gmail.com>2021-11-18 12:31:29 +0100
commitf6d16d55c6852c49eae181c2444d1f5bc0f3d04d (patch)
treee658667c0c870c21c1e26c5f00c9403638e92e8d /platform/windows/os_windows.cpp
parent15062513c01a835f59d9c905e5e65a7002d6c370 (diff)
Fix data directory of unnamed projects
Diffstat (limited to 'platform/windows/os_windows.cpp')
-rw-r--r--platform/windows/os_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 2c21390d73..d8d4e92d9d 100644
--- a/platform/windows/os_windows.cpp
+++ b/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 {