mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Changed the 'path' property for the video element to consider the value set even if it points to a non-existing file
This commit is contained in:
parent
8e1b3455aa
commit
fd955d5a6e
|
@ -1014,7 +1014,7 @@ void SystemView::updateGameSelectors()
|
|||
|
||||
for (auto& video : mSystemElements[cursor].videoComponents) {
|
||||
// If a static video has been set, then don't attempt to find a gameselector entry.
|
||||
if (video->hasStaticVideo())
|
||||
if (video->hasStaticVideo() || video->getThemeGameSelector() == ":none:")
|
||||
continue;
|
||||
GameSelectorComponent* gameSelector {nullptr};
|
||||
if (multipleSelectors) {
|
||||
|
@ -1055,7 +1055,7 @@ void SystemView::updateGameSelectors()
|
|||
}
|
||||
|
||||
for (auto& video : mSystemElements[cursor].videoComponents) {
|
||||
if (video->hasStaticVideo() ||
|
||||
if (video->hasStaticVideo() || video->getThemeGameSelector() == ":none:" ||
|
||||
(video->getThemeImageTypes().size() == 0 && video->getDefaultImage() == ""))
|
||||
continue;
|
||||
GameSelectorComponent* gameSelector {nullptr};
|
||||
|
|
|
@ -229,6 +229,7 @@ void VideoComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
mConfig.staticVideoPath = staticPath;
|
||||
}
|
||||
else {
|
||||
mThemeGameSelector = ":none:";
|
||||
LOG(LogWarning) << "VideoComponent: File defined for property \"path\" for element \""
|
||||
<< element.substr(6) << "\" does not exist: \"" << staticPath << "\"";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue