Use psxcdgen_ex under WSL and improve wslpath and makefiles

This commit is contained in:
2023-08-25 05:15:23 +02:00
parent 5c944dcb0a
commit d919f4fbd5
14 changed files with 113 additions and 70 deletions

View File

@@ -6,6 +6,7 @@ fn convert_slashes(path: String) -> String {
path.replace('\\', "/")
}
#[cfg(target_os = "windows")]
fn replace_drive_letter(mut path: String) -> String {
let has_drive_letter = {
let drive_letter = path.get(0..2);
@@ -35,5 +36,10 @@ fn replace_drive_letter(mut path: String) -> String {
path.insert_str(0, "/mnt/");
}
path
}
#[cfg(not(target_os = "windows"))]
fn replace_drive_letter(path: String) -> String {
path
}