mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Videos now always start to play immediately if there is no static image.
This commit is contained in:
parent
4831279543
commit
3e8a5391e1
|
@ -634,7 +634,7 @@ Activating or deactivating the built-in help systems that provides contextual in
|
||||||
|
|
||||||
**Play videos immediately (override theme)**
|
**Play videos immediately (override theme)**
|
||||||
|
|
||||||
Some themes (including rbsimple-DE) display the game images briefly before playing the game videos. This setting forces the videos to be played immediately, regardless of the configuration in the theme.
|
Some themes (including rbsimple-DE) display the game images briefly before playing the game videos. This setting forces the videos to be played immediately, regardless of the configuration in the theme. Note though that if there is a video available for a game, but no images, the video will always start to play immediately no matter the theme configuration or whether this settings has been enabled or not.
|
||||||
|
|
||||||
**Show start menu in kid mode**
|
**Show start menu in kid mode**
|
||||||
|
|
||||||
|
|
|
@ -204,11 +204,15 @@ void VideoComponent::handleStartDelay()
|
||||||
// If the setting to override the theme-supplied video delay setting has been enabled,
|
// If the setting to override the theme-supplied video delay setting has been enabled,
|
||||||
// then play the video immediately.
|
// then play the video immediately.
|
||||||
if (!Settings::getInstance()->getBool("PlayVideosImmediately")) {
|
if (!Settings::getInstance()->getBool("PlayVideosImmediately")) {
|
||||||
|
// If there is a video file available but no static image, then start playing the
|
||||||
|
// video immediately regardless of theme configuration or settings.
|
||||||
|
if (mStaticImagePath != "") {
|
||||||
if (mStartTime > SDL_GetTicks()) {
|
if (mStartTime > SDL_GetTicks()) {
|
||||||
// Timeout not yet completed.
|
// Timeout not yet completed.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Completed.
|
// Completed.
|
||||||
mStartDelayed = false;
|
mStartDelayed = false;
|
||||||
// Clear the playing flag so startVideo works.
|
// Clear the playing flag so startVideo works.
|
||||||
|
|
Loading…
Reference in a new issue