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 9073dc9963)
This commit is contained in:
volzhs
2016-06-03 03:39:37 +09:00
committed by Rémi Verschelde
parent ff91f409bf
commit 356c35954a
4 changed files with 12 additions and 2 deletions

View File

@ -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!="") {