diff options
author | marynate <mary.w.nate@gmail.com> | 2014-07-06 20:31:11 +0800 |
---|---|---|
committer | marynate <mary.w.nate@gmail.com> | 2014-07-06 20:31:39 +0800 |
commit | e68c3cb9f292e9d4dba3edec138ad30db9dab161 (patch) | |
tree | 39882c48ea2463499950009c86b4361b68dd5982 | |
parent | cd80d442a212a119b4bfce95dce78a08cbc49490 (diff) |
Make OS_Windows::get_data_dir return unix path to be consistent with get_resource_path
-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 64219d6c17..ced3285bd8 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1736,7 +1736,7 @@ String OS_Windows::get_data_dir() const { if (has_environment("APPDATA")) { - return OS::get_singleton()->get_environment("APPDATA")+"\\"+an; + return (OS::get_singleton()->get_environment("APPDATA")+"\\"+an).replace("\\","/"); // windows path to unix path to be consistent with get_resource_path } } |