aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-05-15 22:29:44 +0200
committerGitHub <noreply@github.com>2023-05-15 22:29:44 +0200
commit554de62aaa269c334fda8d88848dffe7270f7eb7 (patch)
tree3b9dc38a7cb3e490df9329fc0173edf57de50637 /src-vue/src/plugins
parent225e7545e61b4df2c7404114ebba64246017b86e (diff)
downloadFlightCore-554de62aaa269c334fda8d88848dffe7270f7eb7.tar.gz
FlightCore-554de62aaa269c334fda8d88848dffe7270f7eb7.zip
refactor: Remove caller pattern (#356)
* refactor: Remove caller pattern for `launch_northstar` * refactor: Remove caller pattern for `check_is_flightcore_outdated` * refactor: Remove caller pattern for `get_host_os` * refactor: Remove caller pattern for `find_game_install_location` * refactor: Remove caller pattern for `launch_northstar_steam` * fix: Update function call names in frontend * refactor: Remove caller pattern for `get_northstar_version_number` * fix: Address clippy issues * refactor: Rename function to remove `_caller` suffix
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r--src-vue/src/plugins/store.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index de4b3816..7d1b6c20 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -174,7 +174,7 @@ export const store = createStore<FlightCoreStore>({
} as GameInstall;
if (no_checks) {
- await invoke("launch_northstar_caller", { gameInstall: game_install, bypassChecks: no_checks })
+ await invoke("launch_northstar", { gameInstall: game_install, bypassChecks: no_checks })
.then((message) => {
console.log("Launched with bypassed checks");
console.log(message);
@@ -224,7 +224,7 @@ export const store = createStore<FlightCoreStore>({
// Game is ready to play.
case NorthstarState.READY_TO_PLAY:
- await invoke("launch_northstar_caller", { gameInstall: game_install })
+ await invoke("launch_northstar", { gameInstall: game_install })
.then((message) => {
console.log(message);
// NorthstarState.RUNNING
@@ -246,7 +246,7 @@ export const store = createStore<FlightCoreStore>({
install_type: state.install_type
} as GameInstall;
- await invoke("launch_northstar_steam_caller", { gameInstall: game_install, bypassChecks: no_checks })
+ await invoke("launch_northstar_steam", { gameInstall: game_install, bypassChecks: no_checks })
.then((message) => {
showNotification('Success');
})
@@ -403,7 +403,7 @@ async function _initializeApp(state: any) {
}
if (result === undefined) { // No (valid) value found in persistent store
- result = await invoke("find_game_install_location_caller")
+ result = await invoke("find_game_install_location")
.catch((err) => {
// Gamepath not found or other error
console.error(err);
@@ -445,7 +445,7 @@ async function _initializeApp(state: any) {
async function _checkForFlightCoreUpdates(state: FlightCoreStore) {
// Check if FlightCore up-to-date
- let flightcore_is_outdated = await invoke("check_is_flightcore_outdated_caller") as boolean;
+ let flightcore_is_outdated = await invoke("check_is_flightcore_outdated") as boolean;
if (flightcore_is_outdated) {
let newest_flightcore_version = await invoke("get_newest_flightcore_version") as FlightCoreVersion;
@@ -482,7 +482,7 @@ function _initializeListeners(state: any) {
* state, for it to be displayed in UI.
*/
async function _get_northstar_version_number(state: any) {
- await invoke("get_northstar_version_number_caller", { gamePath: state.game_path })
+ await invoke("get_northstar_version_number", { gamePath: state.game_path })
.then((message) => {
let northstar_version_number: string = message as string;
state.installed_northstar_version = northstar_version_number;