Skip to content

Commit 1674b0b

Browse files
refactor: Rename function to better fit behaviour (#40)
1 parent 142e843 commit 1674b0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src-tauri/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ pub fn set_mod_enabled_status(
481481
/// Gets list of installed mods and their properties
482482
/// - name
483483
/// - is enabled?
484-
pub fn get_installed_mods(game_install: GameInstall) -> Result<Vec<NorthstarMod>, String> {
484+
pub fn get_installed_mods_and_properties(game_install: GameInstall) -> Result<Vec<NorthstarMod>, String> {
485485
// Get enabled mods as JSON
486486
let res: serde_json::Value = get_enabled_mods(game_install)?;
487487

src-tauri/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::{
1212
use app::{
1313
check_is_flightcore_outdated, check_is_valid_game_path, check_northstar_running,
1414
check_origin_running, convert_release_candidate_number, find_game_install_location,
15-
get_enabled_mods, get_host_os, get_installed_mods, get_log_list, get_northstar_version_number,
15+
get_enabled_mods, get_host_os, get_installed_mods_and_properties, get_log_list, get_northstar_version_number,
1616
install_northstar, launch_northstar, linux_checks_librs, set_mod_enabled_status, GameInstall, NorthstarMod,
1717
};
1818

@@ -296,5 +296,5 @@ async fn disable_all_but_core_caller(game_install: GameInstall) -> Result<(), St
296296

297297
#[tauri::command]
298298
async fn get_installed_mods_caller(game_install: GameInstall) -> Result<Vec<NorthstarMod>, String> {
299-
get_installed_mods(game_install)
299+
get_installed_mods_and_properties(game_install)
300300
}

0 commit comments

Comments
 (0)