mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-15 19:28:53 +01:00
Added media.system_artwork path parameter support to settings.conf.
This commit is contained in:
parent
1785c008a1
commit
4d4acca35f
@ -131,6 +131,7 @@ bool CollectionInfoBuilder::createCollectionDirectory(std::string name)
|
|||||||
settingsFile << "#media.screenshot = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "medium_artwork", "screenshot") << std::endl;
|
settingsFile << "#media.screenshot = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "medium_artwork", "screenshot") << std::endl;
|
||||||
settingsFile << "#media.screentitle = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "medium_artwork", "screentitle") << std::endl;
|
settingsFile << "#media.screentitle = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "medium_artwork", "screentitle") << std::endl;
|
||||||
settingsFile << "#media.video = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "medium_artwork", "video") << std::endl;
|
settingsFile << "#media.video = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "medium_artwork", "video") << std::endl;
|
||||||
|
settingsFile << "#media.system_artwork = " << Utils::combinePath("%BASE_MEDIA_PATH%", "%ITEM_COLLECTION_NAME%", "system_artwork") << std::endl;
|
||||||
settingsFile.close();
|
settingsFile.close();
|
||||||
|
|
||||||
filename = Utils::combinePath(collectionPath, "menu.txt");
|
filename = Utils::combinePath(collectionPath, "menu.txt");
|
||||||
|
|||||||
@ -332,6 +332,10 @@ void Configuration::getMediaPropertyAbsolutePath(std::string collectionName, std
|
|||||||
void Configuration::getMediaPropertyAbsolutePath(std::string collectionName, std::string mediaType, bool system, std::string &value)
|
void Configuration::getMediaPropertyAbsolutePath(std::string collectionName, std::string mediaType, bool system, std::string &value)
|
||||||
{
|
{
|
||||||
std::string key = "collections." + collectionName + ".media." + mediaType;
|
std::string key = "collections." + collectionName + ".media." + mediaType;
|
||||||
|
if (system)
|
||||||
|
{
|
||||||
|
key = "collections." + collectionName + ".media.system_artwork";
|
||||||
|
}
|
||||||
|
|
||||||
// use user-overridden setting if it exists
|
// use user-overridden setting if it exists
|
||||||
if(getPropertyAbsolutePath(key, value))
|
if(getPropertyAbsolutePath(key, value))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user