-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.sh
76 lines (75 loc) · 2.5 KB
/
launch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/sh
#echo "===================================="
echo $0 $*
RA_DIR=/mnt/SDCARD/RetroArch
EMU_DIR=/mnt/SDCARD/Best/$0
cd $RA_DIR/
case "$1" in
*.gba )
echo ----GBA
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/mgba_libretro.so "$*"
;;
*.gbc )
echo ----GBC
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/gambatte_libretro.so "$*"
;;
*.gb )
echo ----GB
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/gambatte_gb_libretro.so "$*"
;;
*.wsc | *.ws )
echo ----WS
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/mednafen_wswan_libretro.so "$*"
;;
*.nes | *.fc)
echo ----FC
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/fceumm_libretro.so "$*"
;;
*.smc | *.sfc)
echo ----SFC
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/snes9x2005_libretro.so "$*"
;;
*.md | *.sms | *.gg)
echo ----MD/MS/GG
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/picodrive_libretro.so "$*"
;;
*.a26 )
echo ----A26
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/stella_libretro.so "$*"
;;
*.pce )
echo ----PCE
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/mednafen_supergrafx_libretro.so "$*"
;;
*.z64 )
echo ----N64
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/mupen64plus_libretro.so "$*"
;;
*.cue | *.m3u | *.chd)
echo ----PS
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/pcsx_rearmed_libretro.so "$*"
;;
*.cdi | *.gdi )
echo ----DC
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/flycast_libretro.so "$*"
;;
*.zip )
echo ----FBNEO
HOME=$RA_DIR/ $RA_DIR/ra64.trimui -v $NET_PARAM -L $RA_DIR/.retroarch/cores/fbneo_libretro.so "$*"
;;
*.cso | *.iso )
echo ----PSP
PPSSPP_DIR=/mnt/SDCARD/Emus/PPSSPP
cd $PPSSPP_DIR
HOME=/mnt/SDCARD $PPSSPP_DIR/PPSSPPSDL "$*"
;;
*.nds )
echo ----NDS
DRASTIC_DIR=/mnt/SDCARD/Emus/NDS/drastic
cd $DRASTIC_DIR
HOME=/mnt/SDCARD $DRASTIC_DIR/drastic "$*"
;;
*)
echo ----none
;;
esac