mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-03 02:37:14 +02:00
Delaying %ITEM_COLLECTION_NAME% processing for launchers
This commit is contained in:
@@ -130,10 +130,13 @@ bool Configuration::parseLine(std::string collection, std::string keyPrefix, std
|
|||||||
|
|
||||||
key = trimEnds(key);
|
key = trimEnds(key);
|
||||||
|
|
||||||
|
// only overwrite the collection name if we know it. We could be parsing a launcher configuration
|
||||||
value = line.substr(position + delimiter.length(), line.length());
|
if(collection != "")
|
||||||
value = trimEnds(value);
|
{
|
||||||
value = Utils::replace(value, "%ITEM_COLLECTION_NAME%", collection);
|
value = line.substr(position + delimiter.length(), line.length());
|
||||||
|
value = trimEnds(value);
|
||||||
|
value = Utils::replace(value, "%ITEM_COLLECTION_NAME%", collection);
|
||||||
|
}
|
||||||
|
|
||||||
properties_.insert(PropertiesPair(key, value));
|
properties_.insert(PropertiesPair(key, value));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user