diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-13 17:35:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 17:35:35 +0200 |
commit | faec6fbdee726157b697f369375764268902fe86 (patch) | |
tree | 250aaaab118ae92b86580b42f5d3ec82497340f9 | |
parent | 2fcdada6864751ec708ace9ccd8c28d6d99aab06 (diff) | |
download | kartik-client-faec6fbdee726157b697f369375764268902fe86.tar.gz kartik-client-faec6fbdee726157b697f369375764268902fe86.tar.bz2 kartik-client-faec6fbdee726157b697f369375764268902fe86.zip |
Fix that makes the game start!!
-rw-r--r-- | app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 +})(); |