aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index b38b65d..d854ce8 100644
--- a/src/index.js
+++ b/src/index.js
@@ -53,6 +53,9 @@ function start() {
ipcMain.on("installedmod", (event, modname) => {win.webContents.send("installedmod", modname)});
ipcMain.on("guigetmods", (event, ...args) => {win.webContents.send("mods", utils.mods.list())});
+ ipcMain.on("gamestarted", (event) => {win.webContents.send("gamestate", true)});
+ ipcMain.on("gamestopped", (event) => {win.webContents.send("gamestate", false)});
+
let gamepathlost = false;
ipcMain.on("gamepathlost", (event, ...args) => {
if (! gamepathlost) {