Compare commits

..
Author SHA1 Message Date
Ludovic MarieandClaude Opus 5.5 c5221cc92d Launcher: java_launch's Windows paths, one part at a time
The log config and old versions' asset folder were joined from
"a/b" strings; on Windows their tests compared those mixed
separators with paths joined part by part. Join them part by part.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 01:23:12 +01:00
+2 -5
View File
@@ -103,11 +103,8 @@ fn a_modern_version_gets_its_rules_placeholders_and_classpath() {
assert!(!a.iter().any(|x| x == "--demo" || x == "--width"));
let sep = if cfg!(windows) { ";" } else { ":" };
let cp: Vec<String> = a[at("-cp") + 1].split(sep).map(String::from).collect();
let lib = |p: &str| {
under(&mc.join("libraries"), p)
.to_string_lossy()
.into_owned()
};
// Library paths are Mojang's, `/` and all (`mojang::relative`): Windows takes them.
let lib = |p: &str| mc.join("libraries").join(p).to_string_lossy().into_owned();
assert_eq!(
cp,
[