Checking in supplimenting config file to also support images for number buttons, players, and year

This commit is contained in:
emb 2015-02-27 23:17:27 -06:00
parent a9dbc4e004
commit a29b0ee528

View File

@ -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";