aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/mod_management/legacy.rs
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-07-30 01:24:18 +0200
committerGitHub <noreply@github.com>2023-07-30 01:24:18 +0200
commit40520344778a98c45817e9cbc00caab6ec3ea6bf (patch)
tree1b60a9ea7801734b27ac120c65c016ea1e38d4a7 /src-tauri/src/mod_management/legacy.rs
parent399f0e78b4773aa97a8a80c43fb2312ea830a845 (diff)
downloadFlightCore-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.rs2
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,