Last active
December 28, 2019 14:08
-
-
Save Rensvind/7b6ca8e99d114016142d257cdf43dd47 to your computer and use it in GitHub Desktop.
Add EmuELEC addon support to IAGL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
################################################################################ | |
# Launch games using CoreELEC with EmuELEC-ng addon | |
################################################################################ | |
. /etc/profile | |
RETROARCH_EXE="/storage/.kodi/addons/script.emuelec.Amlogic-ng.launcher/bin/retroarch" | |
RETROARCH_CORE_DIR="/storage/.kodi/addons/script.emuelec.Amlogic-ng.launcher/lib/libretro" | |
RETROARCH_CONFIG_DIR="/storage/.config/retroarch" | |
RETROARCH_CONFIG_FILE="$RETROARCH_CONFIG_DIR/retroarch.cfg" | |
systemctl stop kodi | |
if [ "$2" != "" ]; then | |
$RETROARCH_EXE -c $RETROARCH_CONFIG_FILE -L $RETROARCH_CORE_DIR/$1_libretro.so "$2" & | |
else | |
$RETROARCH_EXE -c $RETROARCH_CONFIG_FILE --menu --verbose >> "/storage/.tmp/retroarch_log.txt" 2>&1 & | |
fi | |
while pgrep retroarch > /dev/null; do sleep 1; done | |
systemctl start kodi | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#/bin/mkdir -p /storage/emulators/retroarch/system | |
#/bin/mkdir -p /storage/emulators/retroarch/screenshots | |
. /etc/profile | |
systemd-run /storage/.kodi/addons/plugin.program.iagl/resources/bin/emuelec-ng.start "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
################################################################################ | |
# Launch games using CoreELEC with EmuELEC addon | |
################################################################################ | |
. /etc/profile | |
RETROARCH_EXE="/storage/.kodi/addons/script.emuelec.Amlogic.launcher/bin/retroarch" | |
RETROARCH_CORE_DIR="/storage/.kodi/addons/script.emuelec.Amlogic.launcher/lib/libretro" | |
RETROARCH_CONFIG_DIR="/storage/.config/retroarch" | |
RETROARCH_CONFIG_FILE="$RETROARCH_CONFIG_DIR/retroarch.cfg" | |
systemctl stop kodi | |
if [ "$2" != "" ]; then | |
$RETROARCH_EXE -c $RETROARCH_CONFIG_FILE -L $RETROARCH_CORE_DIR/$1_libretro.so "$2" & | |
else | |
$RETROARCH_EXE -c $RETROARCH_CONFIG_FILE --menu --verbose >> "/storage/.tmp/retroarch_log.txt" 2>&1 & | |
fi | |
while pgrep retroarch > /dev/null; do sleep 1; done | |
systemctl start kodi | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#/bin/mkdir -p /storage/emulators/retroarch/system | |
#/bin/mkdir -p /storage/emulators/retroarch/screenshots | |
. /etc/profile | |
systemd-run /storage/.kodi/addons/plugin.program.iagl/resources/bin/emuelec.start "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment