Skip to content

Commit

Permalink
feat: add ffplay as core
Browse files Browse the repository at this point in the history
Parent folder should match "MEDIA" or "Movies" patterns
  • Loading branch information
goweiwen committed Dec 29, 2023
1 parent d485301 commit bfe2620
Show file tree
Hide file tree
Showing 19 changed files with 102 additions and 7 deletions.
73 changes: 66 additions & 7 deletions assets/root/.allium/config/consoles.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ quasi88 = "QUASI88"
reminiscence = "REminiscence"
retro8 = "Retro8"
sameduck = "SameDuck"
scummvm = "ScummVM"
scummvm = "ScummVM"
sh_launcher = "SH Launcher"
snes9x = "Snes9x"
snes9x2002 = "Snes9x 2002"
Expand Down Expand Up @@ -104,7 +104,19 @@ extensions = ["sna", "kcr"]

[[consoles]]
name = "Arcade"
cores = ["mame2003_plus", "fbneo", "fbalpha2012", "fbalpha2012_cps1", "fbalpha2012_cps2", "fbalpha2012_cps3", "km_mame2003_xtreme", "mame2003_midway", "mame2003", "mame2000", "mba_mini"]
cores = [
"mame2003_plus",
"fbneo",
"fbalpha2012",
"fbalpha2012_cps1",
"fbalpha2012_cps2",
"fbalpha2012_cps3",
"km_mame2003_xtreme",
"mame2003_midway",
"mame2003",
"mame2000",
"mba_mini",
]
patterns = ["ARCADE"]

[[consoles]]
Expand Down Expand Up @@ -161,17 +173,50 @@ extensions = ["ws", "pc2"]

[[consoles]]
name = "CPS1"
cores = ["fbalpha2012_cps1", "mame2003_plus", "fbneo", "fbalpha2012", "fbalpha2012_cps1", "km_mame2003_xtreme", "mame2003_midway", "mame2003", "mame2000", "mba_mini"]
cores = [
"fbalpha2012_cps1",
"mame2003_plus",
"fbneo",
"fbalpha2012",
"fbalpha2012_cps1",
"km_mame2003_xtreme",
"mame2003_midway",
"mame2003",
"mame2000",
"mba_mini",
]
patterns = ["CPS1"]

[[consoles]]
name = "CPS2"
cores = ["fbalpha2012_cps2", "mame2003_plus", "fbneo", "fbalpha2012", "fbalpha2012_cps2", "km_mame2003_xtreme", "mame2003_midway", "mame2003", "mame2000", "mba_mini"]
cores = [
"fbalpha2012_cps2",
"mame2003_plus",
"fbneo",
"fbalpha2012",
"fbalpha2012_cps2",
"km_mame2003_xtreme",
"mame2003_midway",
"mame2003",
"mame2000",
"mba_mini",
]
patterns = ["CPS2"]

[[consoles]]
name = "CPS3"
cores = ["fbalpha2012_cps3", "mame2003_plus", "fbneo", "fbalpha2012", "fbalpha2012_cps3", "km_mame2003_xtreme", "mame2003_midway", "mame2003", "mame2000", "mba_mini"]
cores = [
"fbalpha2012_cps3",
"mame2003_plus",
"fbneo",
"fbalpha2012",
"fbalpha2012_cps3",
"km_mame2003_xtreme",
"mame2003_midway",
"mame2003",
"mame2000",
"mba_mini",
]
patterns = ["CPS3"]

[[consoles]]
Expand Down Expand Up @@ -261,7 +306,7 @@ extensions = [
name = "MSX"
cores = ["bluemsx", "fmsx"]
patterns = ["MSX"]
extensions = ["mx1", "mx2" ]
extensions = ["mx1", "mx2"]

[[consoles]]
name = "SuperGrafx"
Expand Down Expand Up @@ -335,7 +380,15 @@ extensions = ["st"]

[[consoles]]
name = "SNES"
cores = ["mednafen_supafaust", "snes9x", "snes9x2010", "snes9x2005", "snes9x2005_plus", "snes9x2002", "chimerasnes"]
cores = [
"mednafen_supafaust",
"snes9x",
"snes9x2010",
"snes9x2005",
"snes9x2005_plus",
"snes9x2002",
"chimerasnes",
]
patterns = ["SFC", "SNES"]
extensions = ["sfc", "smc", "swc", "fig"]

Expand Down Expand Up @@ -583,3 +636,9 @@ name = "Nintendo DS"
path = "/mnt/SDCARD/.allium/cores/drastic/launch.sh"
patterns = ["NDS", "DS"]
extensions = ["nds"]

[[consoles]]
name = "Movies"
path = "/mnt/SDCARD/.allium/cores/ffplay/launch.sh"
patterns = ["MEDIA", "Movies"]
extensions = ["3g2", "3gp", "aac" "avi", "flv", "m4a", "m4a", "mkv", "mj2", "mov", "mp3", "mp4", "mpeg", "ogg", "oss", "wav", "webm"]
3 changes: 3 additions & 0 deletions assets/root/.allium/cores/ffplay/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Source: https://github.com/bobotrax/ffplay_Miyoo

Thanks to steward-fu and BoboTrax
Binary file added assets/root/.allium/cores/ffplay/bin/ffplay
Binary file not shown.
Binary file added assets/root/.allium/cores/ffplay/bin/ffplay_16_9
Binary file not shown.
12 changes: 12 additions & 0 deletions assets/root/.allium/cores/ffplay/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"label":"Videos",
"icon":"icon.png",
"iconsel":"",
"launch":"launch.sh",
"rompath":"../../Media/Videos",
"imgpath":"../../Media/Videos/Imgs",
"useswap":0,
"shortname":0,
"hidebios":0,
"extlist":""
}
Binary file added assets/root/.allium/cores/ffplay/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions assets/root/.allium/cores/ffplay/launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

if [ -f /mnt/SDCARD/.tmp_update/script/stop_audioserver.sh ]; then
/mnt/SDCARD/.tmp_update/script/stop_audioserver.sh
fi

"$ROOT"/.allium/cores/ffplay/launch_ffplay.sh "$@"

if [ -f /mnt/SDCARD/.tmp_update/script/start_audioserver.sh ]; then
/mnt/SDCARD/.tmp_update/script/start_audioserver.sh
fi
10 changes: 10 additions & 0 deletions assets/root/.allium/cores/ffplay/launch_ffplay.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
mydir=`dirname "$0"`
export HOME=$mydir
export PATH=$mydir/bin:$PATH
export LD_LIBRARY_PATH=$mydir/libs:$LD_LIBRARY_PATH
cd $mydir
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
touch /tmp/stay_awake
ffplay -autoexit -vf "hflip,vflip" -i "$1"
rm -f /tmp/stay_awake
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit bfe2620

Please sign in to comment.