mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2024-06-02 19:48:01 -04:00
splashscreen - only add --mmal-layer for videocore
This commit is contained in:
parent
19865c363d
commit
2518994e6c
|
@ -63,6 +63,9 @@ _EOF_
|
|||
iniSet "DATADIR" "$datadir"
|
||||
iniSet "REGEX_IMAGE" "$(_image_exts_splashscreen)"
|
||||
iniSet "REGEX_VIDEO" "$(_video_exts_splashscreen)"
|
||||
if isPlatform "videocore"; then
|
||||
iniSet "VLC_OPTS" "--mmal-layer 10001"
|
||||
fi
|
||||
|
||||
if [[ ! -f "$configdir/all/$md_id.cfg" ]]; then
|
||||
iniConfig "=" '"' "$configdir/all/$md_id.cfg"
|
||||
|
|
|
@ -4,6 +4,7 @@ ROOTDIR=""
|
|||
DATADIR=""
|
||||
REGEX_VIDEO=""
|
||||
REGEX_IMAGE=""
|
||||
VLC_OPTS=""
|
||||
|
||||
# Load user settings
|
||||
. /opt/retropie/configs/all/splashscreen.cfg
|
||||
|
@ -12,7 +13,7 @@ do_start () {
|
|||
local config="/etc/splashscreen.list"
|
||||
local line
|
||||
local re="$REGEX_VIDEO\|$REGEX_IMAGE"
|
||||
local vlc="vlc --intf dummy --quiet --no-video-title-show --play-and-exit --mmal-layer 10001"
|
||||
local vlc="vlc --intf dummy --quiet --no-video-title-show --play-and-exit "
|
||||
case "$RANDOMIZE" in
|
||||
retropie)
|
||||
line="$(find "$ROOTDIR/supplementary/splashscreen" -type f | grep "$re" | shuf -n1)"
|
||||
|
|
Loading…
Reference in a new issue