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
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -7,7 +7,7 @@ function loadSettings(path) {
if (!f.open('r')) throw 'Failed to open bullshit.ini.';
var settings = f.iniGetObject();
settings.colors = f.iniGetObject('colors');
settings.files = f.iniGetObject('files');
settings.files = f.iniGetObject('files') || {};
f.close();
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