aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-13 17:35:35 +0200
committerGitHub <noreply@github.com>2021-08-13 17:35:35 +0200
commitfaec6fbdee726157b697f369375764268902fe86 (patch)
tree250aaaab118ae92b86580b42f5d3ec82497340f9
parent2fcdada6864751ec708ace9ccd8c28d6d99aab06 (diff)
downloadkartik-client-faec6fbdee726157b697f369375764268902fe86.tar.gz
kartik-client-faec6fbdee726157b697f369375764268902fe86.tar.bz2
kartik-client-faec6fbdee726157b697f369375764268902fe86.zip
Fix that makes the game start!!
-rw-r--r--app.js4
1 files changed, 2 insertions, 2 deletions
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
+})();