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.
This commit is contained in:
@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user