Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
1f52abed6eaf9767813c7e4e4ae239c2cab8ba41...cfd02a91ccda9e4187f335fbd2ceed20dd4ad95e
Commits (1)
Don't crap out if [files] section empty or missing.
· cfd02a91
echicken
authored
Nov 28, 2021
cfd02a91
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
xtrn/bullshit/bullshit-lib.js
xtrn/bullshit/bullshit-lib.js
+1
-1
No files found.
xtrn/bullshit/bullshit-lib.js
View file @
cfd02a91
...
@@ -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
)
{
...
...