Skip to content
Snippets Groups Projects
Commit e788b234 authored by rswindell's avatar rswindell
Browse files

set() method can now be used to an object (section) in the user's property

(.ini) file in a single call.
parent b666f1ac
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,13 @@ function set(section, key, value, usernum)
var file = new File(filename(usernum));
if(!file.open(file.exists ? 'r+':'w+'))
return false;
var result = file.iniSetValue(section, key, value);
var result;
if(!section)
result = file.iniSetAllObjects(value);
else if(!key)
result = file.iniSetObject(section, value);
else
result = file.iniSetValue(section, key, value);
file.close();
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment