mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-29 11:05:40 +01:00
Added support for system_artwork/video playback.
This commit is contained in:
parent
cae0198bf9
commit
7f1f6137b6
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user