From b38103e95d7d616f83bd1486c6e457dbb3975706 Mon Sep 17 00:00:00 2001 From: NOLogicalSense Date: Sun, 26 Jan 2025 15:14:45 -0800 Subject: [PATCH] Windows: Normalize slashes in return of `OS.get_temp_dir()` --- platform/windows/os_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 0352a8314a3..7846cc404a3 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -2168,7 +2168,7 @@ String OS_Windows::get_temp_path() const { temp_path_cache = get_config_path(); } } - return temp_path_cache; + return temp_path_cache.replace("\\", "/").trim_suffix("/"); } // Get properly capitalized engine name for system paths