mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-02-09 00:16:10 +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;
|
int lineCount = 0;
|
||||||
std::string line;
|
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());
|
std::ifstream ifs(file.c_str());
|
||||||
|
|
||||||
if (!ifs.is_open())
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
@ -367,6 +367,22 @@ void Configuration::GetMediaPropertyAbsolutePath(std::string collectionName, std
|
|||||||
{
|
{
|
||||||
value = baseMediaPath + "/_manufacturer";
|
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)
|
else if(system)
|
||||||
{
|
{
|
||||||
value = baseMediaPath + "/" + collectionName + "/system_artwork";
|
value = baseMediaPath + "/" + collectionName + "/system_artwork";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user