TriForceX / MiyooCFW

Custom firmware source code and resources for BittBoy, PocketGo, PowKiddy V90-Q90-Q20 and third party handheld consoles
GNU General Public License v2.0
1.11k stars 112 forks source link

Emulator "parameters" options for GMenu2x? #508

Closed jasongrieves closed 1 year ago

jasongrieves commented 1 year ago

Great updates on the latest 2.0 and gmenu2x. shut down + auto start is 75% of the way to what I was hoping for!

I appreciated this approach for Retro-Arch: https://jahed.dev/2022/01/25/improving-powkiddy-v90-ux/

I see Gmenu2x support parameters: https://github.com/MiyooCFW/gmenu2x#parameters

I'm not finding any info on what these parameters could be on those emulators. I've been peeking at their github repo's and also looking at other cores but not seeing anything. Ideally we could pass something like "s0" and it would know to load save state 0 with the passed in game.

Apaczer commented 1 year ago

add params= entry in link to use these variables as arguments for your executed app, example in PCSX link from @HYJiNX187 setup:

pcsx.lnk:

exec=pcsx.sh
params=[selPath] [selFile] [selExt]

pcsx.sh:

#!/bin/sh
mv /mnt/emus/pcsx_rearmed/.pcsx/pcsx.cfg /mnt/emus/pcsx_rearmed/.pcsx/pcsx.bak
cp /mnt/emus/pcsx_rearmed/.pcsx/cfg/$2.cfg /mnt/emus/pcsx_rearmed/.pcsx/pcsx.cfg
cd /mnt/emus/pcsx_rearmed
./pcsx -cdfile $1/$2$3

_

If you want to autostart RetroArch from last played session, you just need to create link in gmenu2x pointing to retroarch_history.sh and launch with AutoStart feature.

It is not recommend to launch resource-intensive apps without gmenu2x as I described here: https://github.com/TriForceX/MiyooCFW/discussions/493#discussioncomment-5705686