Skip to content
Snippets Groups Projects
Commit cfd02a91 authored by echicken's avatar echicken :chicken:
Browse files

Don't crap out if [files] section empty or missing.

parent 1f52abed
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ function loadSettings(path) { ...@@ -7,7 +7,7 @@ function loadSettings(path) {
if (!f.open('r')) throw 'Failed to open bullshit.ini.'; if (!f.open('r')) throw 'Failed to open bullshit.ini.';
var settings = f.iniGetObject(); var settings = f.iniGetObject();
settings.colors = f.iniGetObject('colors'); settings.colors = f.iniGetObject('colors');
settings.files = f.iniGetObject('files'); settings.files = f.iniGetObject('files') || {};
f.close(); f.close();
Object.keys(settings.colors).forEach(function (k) { Object.keys(settings.colors).forEach(function (k) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment