mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-16 11:48:53 +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);
|
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
|
// only overwrite the collection name if we know it. We could be parsing a launcher configuration
|
||||||
if(collection != "")
|
if(collection != "")
|
||||||
{
|
{
|
||||||
value = line.substr(position + delimiter.length(), line.length());
|
|
||||||
value = trimEnds(value);
|
|
||||||
value = Utils::replace(value, "%ITEM_COLLECTION_NAME%", collection);
|
value = Utils::replace(value, "%ITEM_COLLECTION_NAME%", collection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user