From 356c35954af46ed70790b6f9d75a13714e1144aa Mon Sep 17 00:00:00 2001 From: volzhs Date: Fri, 3 Jun 2016 03:39:37 +0900 Subject: 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) --- drivers/unix/os_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/unix/os_unix.cpp') 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!="") { -- cgit v1.2.3-70-g09d2