From 1674b0b354faccf9160c904f049182d67253497f Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Thu, 3 Nov 2022 22:42:48 +0100 Subject: refactor: Rename function to better fit behaviour (#40) --- src-tauri/src/lib.rs | 2 +- src-tauri/src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src-tauri/src') diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 416efb64..53230f38 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -481,7 +481,7 @@ pub fn set_mod_enabled_status( /// Gets list of installed mods and their properties /// - name /// - is enabled? -pub fn get_installed_mods(game_install: GameInstall) -> Result, String> { +pub fn get_installed_mods_and_properties(game_install: GameInstall) -> Result, String> { // Get enabled mods as JSON let res: serde_json::Value = get_enabled_mods(game_install)?; diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 9cc27e31..e0f6f8ed 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, get_log_list, get_northstar_version_number, + get_enabled_mods, get_host_os, get_installed_mods_and_properties, get_log_list, get_northstar_version_number, install_northstar, launch_northstar, linux_checks_librs, set_mod_enabled_status, GameInstall, NorthstarMod, }; @@ -296,5 +296,5 @@ async fn disable_all_but_core_caller(game_install: GameInstall) -> Result<(), St #[tauri::command] async fn get_installed_mods_caller(game_install: GameInstall) -> Result, String> { - get_installed_mods(game_install) + get_installed_mods_and_properties(game_install) } -- cgit v1.2.3