aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 344ac6c..e44b549 100644
--- a/src/index.js
+++ b/src/index.js
@@ -43,6 +43,7 @@ function start() {
ipcMain.on("exit", () => {process.exit(0)})
ipcMain.on("minimize", () => {win.minimize()})
+ ipcMain.on("installfrompath", (event, path) => {utils.mods.install(path)})
ipcMain.on("installfromurl", (event, url) => {utils.mods.installFromURL(url)})
ipcMain.on("winLog", (event, ...args) => {win.webContents.send("log", ...args)});
ipcMain.on("winAlert", (event, ...args) => {win.webContents.send("alert", ...args)});
@@ -173,6 +174,7 @@ if (cli.hasArgs()) {
cli.init();
}
} else {
+ app.disableHardwareAcceleration();
app.on("ready", () => {
app.setPath("userData", path.join(app.getPath("cache"), app.name));
start();