aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs27
1 files changed, 1 insertions, 26 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 207a148a..3290912d 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -136,7 +136,7 @@ fn main() {
github::release_notes::get_northstar_release_notes,
platform_specific::linux_checks,
mod_management::get_installed_mods_and_properties,
- install_mod_wrapper,
+ mod_management::install_mod_wrapper,
clean_up_download_folder_wrapper,
github::release_notes::get_newest_flightcore_version,
mod_management::delete_northstar_mod,
@@ -204,31 +204,6 @@ pub fn convert_release_candidate_number(version_number: String) -> String {
/// Installs the specified mod
#[tauri::command]
-async fn install_mod_wrapper(
- game_install: GameInstall,
- thunderstore_mod_string: String,
-) -> Result<(), String> {
- match mod_management::fc_download_mod_and_install(&game_install, &thunderstore_mod_string).await
- {
- Ok(()) => (),
- Err(err) => {
- log::warn!("{err}");
- return Err(err);
- }
- };
- match repair_and_verify::clean_up_download_folder(&game_install, false) {
- Ok(()) => Ok(()),
- Err(err) => {
- log::info!("Failed to delete download folder due to {}", err);
- // Failure to delete download folder is not an error in mod install
- // As such ignore. User can still force delete if need be
- Ok(())
- }
- }
-}
-
-/// Installs the specified mod
-#[tauri::command]
async fn clean_up_download_folder_wrapper(
game_install: GameInstall,
force: bool,