diff options
| author | marynate | 2014-07-06 20:31:11 +0800 |
|---|---|---|
| committer | marynate | 2014-07-06 20:31:39 +0800 |
| commit | e68c3cb9f292e9d4dba3edec138ad30db9dab161 (patch) | |
| tree | 39882c48ea2463499950009c86b4361b68dd5982 /platform | |
| parent | cd80d442a212a119b4bfce95dce78a08cbc49490 (diff) | |
| download | godot-e68c3cb9f292e9d4dba3edec138ad30db9dab161.tar.gz godot-e68c3cb9f292e9d4dba3edec138ad30db9dab161.tar.zst godot-e68c3cb9f292e9d4dba3edec138ad30db9dab161.zip | |
Make OS_Windows::get_data_dir return unix path to be consistent with get_resource_path
Diffstat (limited to 'platform')
| -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 64219d6c1..ced3285bd 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 } } |
