mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-24 15:48:52 +01:00
Checking in supplimenting config file to also support images for number buttons, players, and year
This commit is contained in:
parent
a9dbc4e004
commit
a29b0ee528
@ -86,13 +86,13 @@ bool Configuration::Import(std::string keyPrefix, std::string file)
|
||||
int lineCount = 0;
|
||||
std::string line;
|
||||
|
||||
Logger::Write(Logger::ZONE_INFO, "Configuration", "Importing " + file);
|
||||
Logger::Write(Logger::ZONE_INFO, "Configuration", "Importing \"" + file + "\"");
|
||||
|
||||
std::ifstream ifs(file.c_str());
|
||||
|
||||
if (!ifs.is_open())
|
||||
{
|
||||
Logger::Write(Logger::ZONE_ERROR, "Configuration", "Could not open " + file);
|
||||
Logger::Write(Logger::ZONE_ERROR, "Configuration", "Could not open " + file + "\"");
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -367,6 +367,22 @@ void Configuration::GetMediaPropertyAbsolutePath(std::string collectionName, std
|
||||
{
|
||||
value = baseMediaPath + "/_manufacturer";
|
||||
}
|
||||
else if(mediaType == "genre")
|
||||
{
|
||||
value = baseMediaPath + "/_genre";
|
||||
}
|
||||
else if(mediaType == "year")
|
||||
{
|
||||
value = baseMediaPath + "/_year";
|
||||
}
|
||||
else if(mediaType == "number_players")
|
||||
{
|
||||
value = baseMediaPath + "/_number_players";
|
||||
}
|
||||
else if(mediaType == "number_buttons")
|
||||
{
|
||||
value = baseMediaPath + "/_number_buttons";
|
||||
}
|
||||
else if(system)
|
||||
{
|
||||
value = baseMediaPath + "/" + collectionName + "/system_artwork";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user