diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-29 01:15:42 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-29 01:15:42 +0200 |
commit | 7f0ee9be80988f13f1d234136725a03db0335ec5 (patch) | |
tree | c40a497082f8fe03d76571a6e75697d62d0ab720 /src-tauri/src/main.rs | |
parent | 93cec9e9cf8d1f67c38e4194b6c912aff06a3f22 (diff) | |
download | FlightCore-7f0ee9be80988f13f1d234136725a03db0335ec5.tar.gz FlightCore-7f0ee9be80988f13f1d234136725a03db0335ec5.zip |
Add backend function to disable all mods but corearchive/pre-ui-merge
Should help with fixing a Northstar install in the case of conflicting
mods.
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 4089d72b..a2866cb4 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -17,7 +17,7 @@ use app::{ }; mod repair_and_verify; -use repair_and_verify::verify_game_files; +use repair_and_verify::{verify_game_files, disable_all_but_core}; use tauri::Manager; use tauri_plugin_store::PluginBuilder; @@ -85,7 +85,8 @@ fn main() { get_log_list_caller, verify_game_files_caller, get_enabled_mods_caller, - set_mod_enabled_status_caller + set_mod_enabled_status_caller, + disable_all_but_core_caller ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); @@ -272,3 +273,8 @@ fn set_mod_enabled_status_caller( ) -> Result<(), String> { set_mod_enabled_status(game_install, mod_name, is_enabled) } + +#[tauri::command] +fn disable_all_but_core_caller(game_install: GameInstall) -> Result<(), String> { + disable_all_but_core(game_install) +} |