aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/launch.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/js/launch.js')
-rw-r--r--src/app/js/launch.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/app/js/launch.js b/src/app/js/launch.js
new file mode 100644
index 0000000..d14d2ee
--- /dev/null
+++ b/src/app/js/launch.js
@@ -0,0 +1,15 @@
+const update = require("./update");
+
+// tells the main process to launch `game_version`
+module.exports = (game_version) => {
+ if (game_version == "vanilla") {
+ ipcRenderer.send("launch", game_version);
+ return;
+ }
+
+ if (update.ns.should_install) {
+ update.ns();
+ } else {
+ ipcRenderer.send("launch", game_version);
+ }
+}