diff options
| author | volzhs | 2016-06-03 03:39:37 +0900 |
|---|---|---|
| committer | Rémi Verschelde | 2016-06-25 00:05:00 +0200 |
| commit | 356c35954af46ed70790b6f9d75a13714e1144aa (patch) | |
| tree | c351850f59e7d3184610dd0119f5f478debb85cc /drivers/unix/os_unix.cpp | |
| parent | ff91f409bf6575edde8e3e2fcffe3a557d6e7076 (diff) | |
| download | godot-356c35954af46ed70790b6f9d75a13714e1144aa.tar.gz godot-356c35954af46ed70790b6f9d75a13714e1144aa.tar.zst godot-356c35954af46ed70790b6f9d75a13714e1144aa.zip | |
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.
(cherry picked from commit 9073dc99634285edc3b4886467871c14100f8233)
Diffstat (limited to 'drivers/unix/os_unix.cpp')
| -rw-r--r-- | drivers/unix/os_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index a004a116e..5c16c90a0 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -456,7 +456,7 @@ int OS_Unix::get_processor_count() const { String OS_Unix::get_data_dir() const { - String an = Globals::get_singleton()->get("application/name"); + String an = get_safe_application_name(); if (an!="") { |
