Преглед изворни кода

Merge pull request #102067 from Eddy-Rogers/102008-TempDirSlashes

Windows: Normalize slashes in return of `OS.get_temp_dir()`
Thaddeus Crews пре 7 месеци
родитељ
комит
295a1dd5f7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      platform/windows/os_windows.cpp

+ 1 - 1
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