diff options
author | volzhs <volzhs@gmail.com> | 2016-06-03 03:39:37 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2016-06-03 03:39:37 +0900 |
commit | 9073dc99634285edc3b4886467871c14100f8233 (patch) | |
tree | dfb5f44ef5513ac40739c7109d641c3018d33df5 /platform/windows | |
parent | 182ee80b7d0e187053150add897931363e5caab4 (diff) |
change invalid characters when get user data dir on Windows & Unix
Can't create user data folder when project name has ``\ / : * ? " < > |`` characters on OS_Windows & OS_Unix.
So, change it to ``-`` to be able to make folder.
fixes #4928 and it's altanative to #4986.
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/os_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 4f2bfd46ae..aff48c718c 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -2243,7 +2243,7 @@ String OS_Windows::get_system_dir(SystemDir p_dir) const { } String OS_Windows::get_data_dir() const { - String an = Globals::get_singleton()->get("application/name"); + String an = get_safe_application_name(); if (an!="") { if (has_environment("APPDATA")) { |