diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-11-10 00:21:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 00:21:41 +0100 |
commit | 6515ea9cf6922dc431090fba3457400d95f74a57 (patch) | |
tree | 98429087ca67e10d362b051c219f63e79d0aa8a5 /src-tauri/src/main.rs | |
parent | 32fd7e37d0a2e72a88bac3462fbfac3a5d4b6015 (diff) | |
download | FlightCore-6515ea9cf6922dc431090fba3457400d95f74a57.tar.gz FlightCore-6515ea9cf6922dc431090fba3457400d95f74a57.zip |
feat: Parse actually installed mods (#38)
* feat: Parse actually installed mods
Instead of using solely `enabledmods.json` parse the `mod.json` of found
mods in `mods` folder.
* refactor: Remove leftover print statements
* refactor: Move logic into dedicated module
* fix: Load mods despite `enabledmods.json` missing
Previously we would error out early if `enabledmods.json` was missing
despite not actually needing it for mod list.
* style: Autoformat
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 26f138ba..0210cabb 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -12,7 +12,7 @@ use std::{ use app::{ check_is_flightcore_outdated, check_is_valid_game_path, check_northstar_running, check_origin_running, convert_release_candidate_number, find_game_install_location, - get_enabled_mods, get_host_os, get_installed_mods_and_properties, get_log_list, get_northstar_version_number, + get_enabled_mods, get_host_os, get_log_list, get_northstar_version_number, install_northstar, launch_northstar, linux_checks_librs, GameInstall, NorthstarMod, }; @@ -23,7 +23,7 @@ mod repair_and_verify; use repair_and_verify::{verify_game_files, disable_all_but_core}; mod mod_management; -use mod_management::set_mod_enabled_status; +use mod_management::{set_mod_enabled_status, get_installed_mods_and_properties}; use tauri::Manager; use tauri_plugin_store::PluginBuilder; |