aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-27 02:13:32 +0100
committer0neGal <mail@0negal.com>2021-12-27 02:13:32 +0100
commit9d438e3f8f543a93a916f0573c0ea24dbaf4a395 (patch)
tree58b5544ac81f13f070462458342a78239b38ec04 /src/app
parent6ac8259ec96db1ac0e770dd42b4f21c2eabd5c63 (diff)
downloadViper-9d438e3f8f543a93a916f0573c0ea24dbaf4a395.tar.gz
Viper-9d438e3f8f543a93a916f0573c0ea24dbaf4a395.zip
this might add launch options? maybe?
I haven't tested this on Windows... And I will in a bit...
Diffstat (limited to 'src/app')
-rw-r--r--src/app/index.html4
-rw-r--r--src/app/main.js3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/app/index.html b/src/app/index.html
index 263a903..b7b260d 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -15,8 +15,8 @@
<div class="line">
<div class="text">Launch:</div>
<div class="buttons">
- <button id="vanilla">Vanilla</button>
- <button id="northstar">Northstar</button>
+ <button id="vanilla" onclick="launchVanilla()">Vanilla</button>
+ <button id="northstar" onclick="launch()">Northstar</button>
</div>
</div>
</div>
diff --git a/src/app/main.js b/src/app/main.js
index 9783459..404e762 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -19,6 +19,9 @@ if (fs.existsSync(settings.file)) {
function update() {ipcRenderer.send("update")}
function setpath() {ipcRenderer.send("setpath")}
+function launch() {ipcRenderer.send("launch")}
+function launchVanilla() {ipcRenderer.send("launchVanilla")}
+
ipcRenderer.on("newpath", (event, newpath) => {
settings.gamepath = newpath;
})