From a29b0ee52853d3fc03e9bcc98dafd73e19415e0e Mon Sep 17 00:00:00 2001 From: emb <> Date: Fri, 27 Feb 2015 23:17:27 -0600 Subject: [PATCH] Checking in supplimenting config file to also support images for number buttons, players, and year --- RetroFE/Source/Database/Configuration.cpp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/RetroFE/Source/Database/Configuration.cpp b/RetroFE/Source/Database/Configuration.cpp index 75dd400..d01a016 100644 --- a/RetroFE/Source/Database/Configuration.cpp +++ b/RetroFE/Source/Database/Configuration.cpp @@ -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";