From faec6fbdee726157b697f369375764268902fe86 Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 13 Aug 2021 17:35:35 +0200 Subject: Fix that makes the game start!! --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app.js') diff --git a/app.js b/app.js index 36dc896..dde2133 100644 --- a/app.js +++ b/app.js @@ -76,7 +76,7 @@ const fs = require("fs"); app.setPath("crashDumps", homedir + "/.kartik/dumps"); app.setPath('userData', homedir + "/.kartik/storage"); app.whenReady().then(async () => { - if (require('./package.json').channel !== "stable" && require('./package.json').channel !== "git" && !fs.existsSync(homedir + "/.kartik/current.kfn")) { + if (require('./package.json').channel !== "stable" && require('./package.json').channel !== "git" && !require('fs').existsSync(homedir + "/.kartik/current.kfn")) { console.log(" * Opening save data conversion dialog"); global.converting = true; btn = require('electron').dialog.showMessageBoxSync( @@ -431,4 +431,4 @@ const fs = require("fs"); app.quit() } }) -})(); \ No newline at end of file +})(); -- cgit