diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-01-04 20:58:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 20:58:54 +0100 |
commit | 4a63e92ea30fc65cf945b163d2757f17dd3c68cd (patch) | |
tree | ba920c2872f8bd9f6ee4ea338d630b4887e50010 /src-tauri/src/repair_and_verify | |
parent | 131b101045bbc4419f98afe58557a8d532af9bd6 (diff) | |
download | FlightCore-4a63e92ea30fc65cf945b163d2757f17dd3c68cd.tar.gz FlightCore-4a63e92ea30fc65cf945b163d2757f17dd3c68cd.zip |
refactor: Remove unnecessary caller function pattern (#128)
* refactor: Remove unnecessary caller function
Instead call `disable_all_but_core` directly
* refactor: Remove unnecessary caller function
Instead call `get_installed_mods_and_properties` directly
* refactor: Remove unused exposed backend function
* refactor: Remove unnecessary caller function
Instead call `set_mod_enabled_status` directly
* refactor: Remove unnecessary caller function
Instead call `verify_game_files` directly
* refactor: Remove unnecessary caller function
Instead call `get_log_list` directly
Diffstat (limited to 'src-tauri/src/repair_and_verify')
-rw-r--r-- | src-tauri/src/repair_and_verify/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src-tauri/src/repair_and_verify/mod.rs b/src-tauri/src/repair_and_verify/mod.rs index 64278a25..393a8cdd 100644 --- a/src-tauri/src/repair_and_verify/mod.rs +++ b/src-tauri/src/repair_and_verify/mod.rs @@ -4,6 +4,7 @@ use anyhow::anyhow; use app::{get_enabled_mods, GameInstall}; /// Verifies Titanfall2 game files +#[tauri::command] pub fn verify_game_files(game_install: GameInstall) -> Result<String, String> { dbg!(game_install); Err("TODO, not yet implemented".to_string()) @@ -11,6 +12,7 @@ pub fn verify_game_files(game_install: GameInstall) -> Result<String, String> { /// Disables all mods except core ones /// Enables core mods if disabled +#[tauri::command] pub fn disable_all_but_core(game_install: GameInstall) -> Result<(), String> { // Rebuild `enabledmods.json` first to ensure all mods are added @@ -62,6 +64,8 @@ pub fn clean_up_download_folder( Ok(()) } +/// Get list of Northstar logs +#[tauri::command] pub fn get_log_list(game_install: GameInstall) -> Result<Vec<std::path::PathBuf>, String> { let ns_log_folder = format!("{}/R2Northstar/logs", game_install.game_path); |