mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
add required shit for loading per-window config (I think)
This commit is contained in:
@ -539,11 +539,17 @@ Array Table::GetArray(const std::string& path)
|
||||
return Array(arr);
|
||||
}
|
||||
|
||||
Table Table::GetTable(const std::string& path)
|
||||
Table Table::GetTable(const std::string& path, const std::string& defpath)
|
||||
{
|
||||
toml::value& tbl = ResolvePath(path);
|
||||
if (!tbl.is_table())
|
||||
tbl = toml::table();
|
||||
{
|
||||
toml::value defval = toml::table();
|
||||
if (!defpath.empty())
|
||||
defval = ResolvePath(defpath);
|
||||
|
||||
tbl = defval;
|
||||
}
|
||||
|
||||
return Table(tbl, PathPrefix + path);
|
||||
}
|
||||
|
Reference in New Issue
Block a user