Commits (1)
  • Rob Swindell's avatar
    Support blank strings in modopts.ini · 58c10628
    Rob Swindell authored
    Use the new "blanks" option with File.iniGetAllObjects().
    This means that keys specified in the modopts.ini with no value
    will now be represented as blank strings ("") instead of undefined values,
    in JS modules.
......@@ -29,7 +29,7 @@ function get_mod_options(modname, optname, default_optval)
if(optname) // Get a specific option value (optionally, with default value)
val = ini_file.iniGetValue(modname, optname, default_optval);
else // Get all options
val = ini_file.iniGetObject(modname);
val = ini_file.iniGetObject(modname, /* lowercase */false, /* blanks: */true);
return val;