From 61e5294aef101fac02269dd7db6fddc0bcf68ca4 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 30 Jul 2023 02:32:33 +0200 Subject: feat: Add button to forcefully terminate Northstar (#451) to DevView Kills `NorthstarLauncher.exe` and `Titanfall2.exe` processes. --- src-vue/src/views/DeveloperView.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src-vue') diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue index e95154f1..ef878496 100644 --- a/src-vue/src/views/DeveloperView.vue +++ b/src-vue/src/views/DeveloperView.vue @@ -74,6 +74,10 @@ Get installed mods + + Kill Northstar + +

Testing

@@ -220,6 +224,16 @@ export default defineComponent({ showErrorNotification(error); }); }, + async killNorthstar() { + await invoke("kill_northstar") + .then((message) => { + // Just a visual indicator that it worked + showNotification('Success'); + }) + .catch((error) => { + showErrorNotification(error); + }); + }, async installMod() { let mod_to_install = this.mod_to_install_field_string; await invoke("install_mod_caller", { gameInstall: this.$store.state.game_install, thunderstoreModString: mod_to_install }).then((message) => { -- cgit v1.2.3