aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-11-14 08:21:05 +0100
committerGitHub <noreply@github.com>2022-11-14 08:21:05 +0100
commit50e5ba8f50090fec223c1e60ae24cf843574e608 (patch)
tree1aa430ab084030c2402c62eeb03b91c023788945 /src-tauri/src/main.rs
parent5a561f67b349d8216f5c1ea03221b8302b3902ae (diff)
downloadFlightCore-50e5ba8f50090fec223c1e60ae24cf843574e608.tar.gz
FlightCore-50e5ba8f50090fec223c1e60ae24cf843574e608.zip
refactor: Move GitHub API fetch to submodule and re-use existing function (#51)
* refactor: Import all functions from lib So that I don't need to update the header each time I add/remove a function. * refactor: Move function to submodule Move it to module for GitHub API related tasks. * refactor: Re-use existing func for fetching GH API
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 1ac41684..7db9e089 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -9,15 +9,10 @@ use std::{
time::Duration,
};
-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_log_list, get_northstar_version_number,
- install_northstar, launch_northstar, linux_checks_librs, GameInstall, NorthstarMod,
-};
+use app::*;
mod github;
-use github::release_notes::get_northstar_release_notes;
+use github::release_notes::{get_northstar_release_notes, check_is_flightcore_outdated};
mod repair_and_verify;
use repair_and_verify::{verify_game_files, disable_all_but_core};