diff options
Diffstat (limited to 'src/modules/settings.js')
-rw-r--r-- | src/modules/settings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/settings.js b/src/modules/settings.js index e1f68c6..94f6414 100644 --- a/src/modules/settings.js +++ b/src/modules/settings.js @@ -61,7 +61,7 @@ if (fs.existsSync("viper.json")) { settings.save = (obj = {}, notify_renderer = true) => { // refuse to save if settings aren't valid if (invalid_settings) { - return false; + settings = {}; } let settings_content = { @@ -86,7 +86,7 @@ settings.save = (obj = {}, notify_renderer = true) => { if (fs.existsSync(settings.gamepath)) { fs.writeFileSync(path.join( settings.gamepath, "ns_startup_args.txt" - ), settings.nsargs); + ), settings.nsargs || "-multiple"); } if (notify_renderer) { |