From e68c3cb9f292e9d4dba3edec138ad30db9dab161 Mon Sep 17 00:00:00 2001 From: marynate Date: Sun, 6 Jul 2014 20:31:11 +0800 Subject: Make OS_Windows::get_data_dir return unix path to be consistent with get_resource_path --- platform/windows/os_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/windows/os_windows.cpp') 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 } } -- cgit v1.2.3