Skip to content

Commit

Permalink
Update star-citizen-helper: also check f_win_game_client_release.id
Browse files Browse the repository at this point in the history
  • Loading branch information
LovingMelody committed Apr 14, 2024
1 parent eab8add commit c996a5a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 44 deletions.
85 changes: 43 additions & 42 deletions pkgs/star-citizen-helper/Cargo.lock

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

1 change: 1 addition & 0 deletions pkgs/star-citizen-helper/src/game_client_release.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

14 changes: 12 additions & 2 deletions pkgs/star-citizen-helper/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,18 @@ use version::Version;
async fn main() -> Res<()> {
let wine_prefix = std::path::PathBuf::from(std::env::var("WINEPREFIX")?);
let user = std::env::var("USER")?;
let build_manifest = wine_prefix
.join("drive_c/Program Files/Roberts Space Industries/StarCitizen/LIVE/build_manifest.id");
let build_manifest = {
let build = wine_prefix.join(
"drive_c/Program Files/Roberts Space Industries/StarCitizen/LIVE/build_manifest.id",
);
let platform = wine_prefix.join("drive_c/Program Files/Roberts Space Industries/StarCitizen/LIVE/f_win_game_client_release.id");

if platform.exists() {
platform
} else {
build
}
};
let appdata_dir = wine_prefix
.join("drive_c/users")
.join(user)
Expand Down

0 comments on commit c996a5a

Please sign in to comment.