diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-11-07 20:24:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 20:24:14 +0100 |
commit | 1ae49de2b49a0be84b4a842e5a6a2938bcf1889c (patch) | |
tree | 0db6e19409c52f885ccf0eb9269cbf92fa7c6037 /src-tauri/src/main.rs | |
parent | 1674b0b354faccf9160c904f049182d67253497f (diff) | |
download | FlightCore-1ae49de2b49a0be84b4a842e5a6a2938bcf1889c.tar.gz FlightCore-1ae49de2b49a0be84b4a842e5a6a2938bcf1889c.zip |
refactor: Move functions to dedicated file (#41)
Only a single function for now as a sort of proof-of-concept.
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index e0f6f8ed..c3172ee8 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -13,12 +13,15 @@ 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_and_properties, get_log_list, get_northstar_version_number, - install_northstar, launch_northstar, linux_checks_librs, set_mod_enabled_status, GameInstall, NorthstarMod, + install_northstar, launch_northstar, linux_checks_librs, GameInstall, NorthstarMod, }; mod repair_and_verify; use repair_and_verify::{verify_game_files, disable_all_but_core}; +mod mod_management; +use mod_management::set_mod_enabled_status; + use tauri::Manager; use tauri_plugin_store::PluginBuilder; use tokio::time::sleep; |