make parameteres compatible with moonlight 2.4.3
This commit is contained in:
parent
391de3feb3
commit
bac5d7bda9
|
@ -4,6 +4,14 @@
|
||||||
|
|
||||||
oe_setup_addon script.moonlight
|
oe_setup_addon script.moonlight
|
||||||
|
|
||||||
|
# copy gamecontrollerdb.txt to folder
|
||||||
|
MOONLIGHT_CONF_DIR="/storage/.config/moonlight"
|
||||||
|
|
||||||
|
if [ ! -f "$MOONLIGHT_CONF_DIR/gamecontrollerdb.txt" ]; then
|
||||||
|
mkdir -p $MOONLIGHT_CONF_DIR
|
||||||
|
cp $ADDON_DIR/etc/gamecontrollerdb.txt $MOONLIGHT_CONF_DIR
|
||||||
|
fi
|
||||||
|
|
||||||
while [ 1 ]; do
|
while [ 1 ]; do
|
||||||
if [ -f $ADDON_DIR/start_moonlight.tmp ]; then
|
if [ -f $ADDON_DIR/start_moonlight.tmp ]; then
|
||||||
|
|
||||||
|
@ -30,13 +38,9 @@ while [ 1 ]; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MOON_FRAMERATE" = "60" ]; then
|
if [ "$MOON_FRAMERATE" = "60" ]; then
|
||||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -60fps"
|
MOONLIGHT_ARG="$MOONLIGHT_ARG -fps 60"
|
||||||
else
|
else
|
||||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -30fps"
|
MOONLIGHT_ARG="$MOONLIGHT_ARG -fps 30"
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$MOON_FORCEHW" = "true" ]; then
|
|
||||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -forcehw"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MOON_SURROUND" = "true" ]; then
|
if [ "$MOON_SURROUND" = "true" ]; then
|
||||||
|
@ -59,10 +63,6 @@ while [ 1 ]; do
|
||||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -audio $MOON_AUDIO"
|
MOONLIGHT_ARG="$MOONLIGHT_ARG -audio $MOON_AUDIO"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MOON_MAPPING" != "" ]; then
|
|
||||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -mapping \"${ADDON_DIR}/share/moonlight/mappings/${MOON_MAPPING}.conf\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$MOONLIGHT_APP" != "" ]; then
|
if [ "$MOONLIGHT_APP" != "" ]; then
|
||||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -app \"${MOONLIGHT_APP}\""
|
MOONLIGHT_ARG="$MOONLIGHT_ARG -app \"${MOONLIGHT_APP}\""
|
||||||
fi
|
fi
|
||||||
|
@ -78,7 +78,7 @@ while [ 1 ]; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
modprobe snd_bcm2835 || :
|
modprobe snd_bcm2835 || :
|
||||||
echo $MOONLIGHT_ARG >> $ADDON_LOG_FILE
|
echo "${MOONLIGHT_ARG}" >> ${ADDON_LOG_FILE}
|
||||||
/bin/sh -c "${ADDON_DIR}/bin/moonlight ${MOONLIGHT_ARG} > ${ADDON_LOG_FILE} 2>&1"
|
/bin/sh -c "${ADDON_DIR}/bin/moonlight ${MOONLIGHT_ARG} > ${ADDON_LOG_FILE} 2>&1"
|
||||||
rmmod snd_bcm2835 || :
|
rmmod snd_bcm2835 || :
|
||||||
systemctl start kodi
|
systemctl start kodi
|
||||||
|
|
Loading…
Reference in a new issue