mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-13 02:08:52 +01:00
Fix variables not being set in config when no collection was being passed
This commit is contained in:
parent
8b39bca011
commit
b4f1cb259e
@ -130,11 +130,12 @@ bool Configuration::parseLine(std::string collection, std::string keyPrefix, std
|
||||
|
||||
key = trimEnds(key);
|
||||
|
||||
value = line.substr(position + delimiter.length(), line.length());
|
||||
value = trimEnds(value);
|
||||
|
||||
// only overwrite the collection name if we know it. We could be parsing a launcher configuration
|
||||
if(collection != "")
|
||||
{
|
||||
value = line.substr(position + delimiter.length(), line.length());
|
||||
value = trimEnds(value);
|
||||
value = Utils::replace(value, "%ITEM_COLLECTION_NAME%", collection);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user