diff options
author | Jan <sentrycraft123@gmail.com> | 2023-07-30 01:24:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-30 01:24:18 +0200 |
commit | 40520344778a98c45817e9cbc00caab6ec3ea6bf (patch) | |
tree | 1b60a9ea7801734b27ac120c65c016ea1e38d4a7 /src-tauri/src/mod_management/legacy.rs | |
parent | 399f0e78b4773aa97a8a80c43fb2312ea830a845 (diff) | |
download | FlightCore-40520344778a98c45817e9cbc00caab6ec3ea6bf.tar.gz FlightCore-40520344778a98c45817e9cbc00caab6ec3ea6bf.zip |
refactor: Add Profile to GameInstall (#453)
Add Profile to GameInstall
Replace hardcoded uses of R2Northstar with profile attribute
Diffstat (limited to 'src-tauri/src/mod_management/legacy.rs')
-rw-r--r-- | src-tauri/src/mod_management/legacy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/mod_management/legacy.rs b/src-tauri/src/mod_management/legacy.rs index 91463250..1e9f90f5 100644 --- a/src-tauri/src/mod_management/legacy.rs +++ b/src-tauri/src/mod_management/legacy.rs @@ -45,7 +45,7 @@ fn parse_for_thunderstore_mod_string(nsmod_path: &str) -> Result<String, anyhow: pub fn parse_installed_mods( game_install: &GameInstall, ) -> Result<Vec<NorthstarMod>, anyhow::Error> { - let ns_mods_folder = format!("{}/R2Northstar/mods/", game_install.game_path); + let ns_mods_folder = format!("{}/{}/mods/", game_install.game_path, game_install.profile); let paths = match std::fs::read_dir(ns_mods_folder) { Ok(paths) => paths, |