Use psxcdgen_ex under WSL and improve wslpath and makefiles

This commit is contained in:
Jaby
2023-08-25 05:15:23 +02:00
committed by Jaby
parent 1412a585ce
commit 3e42c59ba8
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
}