mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
* Add retroarch package * libretro cores as separate packages * Add libretro-super package * Add core resources, move retroarch bin to /mnt/emus/retroarch dir * add NxEngine assets + correct indendt * [BOARD] add cores appLinks * [GENIMAGE] test -d before running cp to not stderr * [BOARD] add "cores" section in gmenu2x with all appLinks * add PRBOOM data *.wad file * [GENIMAGE] generate cores' script links in genimage.sh * Add scummvm core & downgrade * [GENIMAGE] don't run cores in verbose * resort `core links` and update their icons --------- Co-authored-by: Apaczer <94932128+Apaczer@users.noreply.github.com>
22 lines
732 B
Bash
22 lines
732 B
Bash
#!/bin/sh
|
|
|
|
start_retroarch_func(){
|
|
cd /mnt/emus/retroarch
|
|
if ! read -n 1 -t 1 -s; then
|
|
local history_path='/mnt/.retroarch/content_history.lpl'
|
|
if test -f "${history_path}"; then
|
|
local rom_path="$(head -n20 "${history_path}" | grep -Eo -m1 '/mnt/roms/[^"]+')"
|
|
local core_path="$(head -n20 "${history_path}" | grep -Eo -m1 '/mnt/.retroarch/cores/.+\.so')"
|
|
if test -f "${core_path}" -a -f "${rom_path}"; then
|
|
clear
|
|
echo -e "\n\n\n\n\n\n\n\n\n\n\n\n\n\n \e[1;33m[ LOADING ]\e[0m"
|
|
./retroarch --load-menu-on-error --libretro "${core_path}" "${rom_path}" > /dev/null 2>&1
|
|
return
|
|
fi
|
|
fi
|
|
fi
|
|
./retroarch --menu > /dev/null 2>&1
|
|
}
|
|
|
|
start_retroarch_func
|