Skip to content

Commit

Permalink
Small bugfix on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ekx committed Apr 17, 2024
1 parent b350dbe commit d5025fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### 0.1.1
Bugfix where retro arch core and info paths would not be resolved correctly on windows

### 0.1.0
Initial release with update core functionality
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starch"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
description = "CLI utility for the Steam version of RetroArch"
authors = ["Benjamin Dengler <h@bede.re>"]
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ async fn update_cores(version: String, retro_arch_path: Option<PathBuf>) -> Resu
.expect("Couldn't find info path in RetroArch config");

let core_path = if core_path_settings.starts_with(":") {
retro_arch_path.join(core_path_settings.replace(":", "."))
retro_arch_path.join(core_path_settings.replace(":/", "./").replace(":", ""))
} else {
PathBuf::from(core_path_settings)
};

let info_path = if info_path_settings.starts_with(":") {
retro_arch_path.join(info_path_settings.replace(":", "."))
retro_arch_path.join(info_path_settings.replace(":/", "./").replace(":", ""))
} else {
PathBuf::from(info_path_settings)
};
Expand All @@ -95,7 +95,7 @@ async fn update_cores(version: String, retro_arch_path: Option<PathBuf>) -> Resu
} else {
version
};

let os = consts::OS;
let arch = consts::ARCH;

Expand Down

0 comments on commit d5025fc

Please sign in to comment.