aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-11-03 22:42:48 +0100
committerGitHub <noreply@github.com>2022-11-03 22:42:48 +0100
commit1674b0b354faccf9160c904f049182d67253497f (patch)
tree1e5defb528c25e4dfb1ba0a83725cf218e530190 /src-tauri
parent142e843a5511b55d761ce10860664d709ad6d8bb (diff)
downloadFlightCore-1674b0b354faccf9160c904f049182d67253497f.tar.gz
FlightCore-1674b0b354faccf9160c904f049182d67253497f.zip
refactor: Rename function to better fit behaviour (#40)
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/src/lib.rs2
-rw-r--r--src-tauri/src/main.rs4
2 files changed, 3 insertions, 3 deletions
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<Vec<NorthstarMod>, String> {
+pub fn get_installed_mods_and_properties(game_install: GameInstall) -> Result<Vec<NorthstarMod>, 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<Vec<NorthstarMod>, String> {
- get_installed_mods(game_install)
+ get_installed_mods_and_properties(game_install)
}