From 7f1f6137b6dbec7304688e43380b171283a3afa4 Mon Sep 17 00:00:00 2001 From: emb <> Date: Thu, 26 Feb 2015 12:35:11 -0600 Subject: [PATCH] Added support for system_artwork/video playback. --- RetroFE/Source/Graphics/Component/ReloadableMedia.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/RetroFE/Source/Graphics/Component/ReloadableMedia.cpp b/RetroFE/Source/Graphics/Component/ReloadableMedia.cpp index df429fb..c6e7af7 100644 --- a/RetroFE/Source/Graphics/Component/ReloadableMedia.cpp +++ b/RetroFE/Source/Graphics/Component/ReloadableMedia.cpp @@ -153,15 +153,21 @@ void ReloadableMedia::ReloadTexture() { names.push_back(selectedItem->GetCloneOf()); } - std::string videoPath; - Config.GetMediaPropertyAbsolutePath(GetCollectionName(), "video", videoPath); for(unsigned int n = 0; n < names.size() && !found; ++n) { VideoBuilder videoBuild; + std::string videoPath; + Config.GetMediaPropertyAbsolutePath(GetCollectionName(), "video", false, videoPath); LoadedComponent = videoBuild.CreateVideo(videoPath, names[n], ScaleX, ScaleY); + if(!LoadedComponent) + { + Config.GetMediaPropertyAbsolutePath(names[n], Type, true, videoPath); + LoadedComponent = videoBuild.CreateVideo(videoPath, "video", ScaleX, ScaleY); + } + if(LoadedComponent) { LoadedComponent->AllocateGraphicsMemory();