diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-20 00:47:27 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-20 00:47:27 +0200 |
commit | 5f3dcdedbb0281cd52ec372c647f9b2ce4f860b7 (patch) | |
tree | 72e3ca3bfa8a536967c6b905704287ce2a1e4b2c /src-vue/src/views/DeveloperView.vue | |
parent | 6d0d813c9af9fb43e2732652c5ec14d914dcea42 (diff) | |
parent | 29837bfe678dad64f01d6f6be69d43d659f402ae (diff) | |
download | FlightCore-5f3dcdedbb0281cd52ec372c647f9b2ce4f860b7.tar.gz FlightCore-5f3dcdedbb0281cd52ec372c647f9b2ce4f860b7.zip |
Merge branch 'main' into feat/install-packages
Diffstat (limited to 'src-vue/src/views/DeveloperView.vue')
-rw-r--r-- | src-vue/src/views/DeveloperView.vue | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue index 500c9c35..28ab3892 100644 --- a/src-vue/src/views/DeveloperView.vue +++ b/src-vue/src/views/DeveloperView.vue @@ -21,6 +21,18 @@ Check NSProton Compatibility </el-button> + <el-button type="primary" @click="installNSProton"> + Install NSProton + </el-button> + + <el-button type="primary" @click="uninstallNSProton"> + Remove NSProton + </el-button> + + <el-button type="primary" @click="getLocalNSProtonVersion"> + Get local NSProton Version + </el-button> + <h3>Testing:</h3> <el-button type="primary" @click="launchGameWithoutChecks"> @@ -308,6 +320,22 @@ export default defineComponent({ notification.close(); }); }, + async installNSProton() { + showNotification(`Started NSProton install`); + await invoke("install_northstar_proton_wrapper") + .then((message) => { showNotification(`Done`); }) + .catch((error) => { showNotification(`Error`, error, "error"); }) + }, + async uninstallNSProton() { + await invoke("uninstall_northstar_proton_wrapper") + .then((message) => { showNotification(`Done`); }) + .catch((error) => { showNotification(`Error`, error, "error"); }) + }, + async getLocalNSProtonVersion() { + await invoke("get_local_northstar_proton_wrapper_version") + .then((message) => { showNotification(`NSProton Version`, message as string); }) + .catch((error) => { showNotification(`Error`, error, "error"); }) + }, } }); </script> |