[dev] Little favorite launcher (third attempt - ready for testers!) v.055! - last release I am finished
-
pushed code to v0.55 now - my work is done!
Source code ist in posting #3, feel free to use'n'compileChanges
- FAV files are called via runcommand now (better for individual rom settings or individual launching screens)
- Filename for favs look more beautifull with
'SYSTEM' - ROMname
naming - Take use of
runcommand_systems.txt
these are the same runcommands as found ines_system.cfg
(read point 1) - lvl-create acts as FAV creater and as FAV launcher the function will be declared via command(1)
- if system is not available in list (nes, megadrive...) then try to launch the commandlineparameter that runcommand usually uses for that rom
- if that is also a failure than try to lauch fav file via bash call
- for interested people... basic is a very good language for manipulating file strings take this as example
- I can't delete FAV files that easy. I could make a flip flop if I can create it like "If fav file can be found then delete it else create fav file" - That's stupid!
Config es_systems.cfg
Add new system like done in the code box and use
lfl-create
as launcher for ROM files:<system> <name>favorites</name> <fullname>Favorites</fullname> <path>/home/pi/RetroPie/roms/fav123456789012345</path> <extension>.fav .FAV</extension> <command>/opt/retropie/supplementary/runcommand/lfl-create %ROM%</command> <platform>all</platform> <theme>favorites</theme> </system>
Please contribute if you use this software
it is tended as free but please respect the work of othersIDE was nano :D
So the code looks a bit messy :DContent of created FAV file
GAMEGEAR - Addams Family, The (U) [!].fav
/home/pi/RetroPie/roms/gamegear/Addams Family, The (U) [!].gg gamegear /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-gx/genesis_plus_gx_libretro.so --config /opt/retropie/configs/gamegear/retroarch.cfg "/home/pi/RetroPie/roms/gamegear/Addams Family, The (U) [!].gg"
Content of
runcommand_systems.txt
that has to be located into FAV-folder/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ amstradcpc %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ atari2600 %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ atari7800 %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ atarilynx %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ fba %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ fds %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gamegear %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gb %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gba %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gbc %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mame-libretro %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mame-mame4all %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mastersystem %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ megadrive %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ msx %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ n64 %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ neogeo %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ ngp %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ ngpc %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ pcengine %ROM% bash %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ psp %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ psx %ROM% sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ sega32x %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ segacd %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ sg-1000 %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ snes %ROM% /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ vectrex %ROM% bash %ROM%
-
@cyperghost My, you really like to suffer, editing all this in nano :) I'm sure you'd even have emacs, if you do want to do everything on the Pi!
You might be better off coding on your computer and copying the files to the pi for compilation, though.
-
@pjft Most of the work was done in nano.
Of course I made some file testing like thissysbash=mid(runcommand,1,InStr(runcommand, "%ROM%")-1)+chr(34)+rom_name+chr(34)+Mid(runcommand,InStr(runcommand, "%ROM%")+Len("%ROM%"),Len(runcommand))
on a windows mashine but inserting was done via nano!So the code locks messy but it is structered via case select for
- Acting as creator for FAV files
- Acting as lauchner for FAV files
Is there a need for the binary?
-
@cyperghost hello mate! I was bothering BuZz to implement a feature in runcommand that I think would help you here. Such feature is now part of RetroPie-Setup.
I think you can use your method described in the OP without messing the "official" runcommand, just place your script at
/opt/retropie/configs/all/runcommand-menu/
.See the conversation here to get details. I'll try to update the runcommand wiki accordingly soon.
-
@meleu Well done good sir. Thanks for helping move the community's initiatives forward!
-
@meleu Sorry my friend that does not work!
I can't create a FAV on every time I run a ROM.
I need an exact entrypoint if I want to change some settings and this entry point can only be theruncommand.sh
in it's selection mode. I developed this software a bit more on to version 0.65, it now deltetes created fav by toggle check fileexistance....I fully understand buzz because the runcommand is his baby - and I just implanted an alien egg in. I think it's okay for personal purpose and for a few freaks but I have the deep hope that someone creates sometimes a better system.
Personally this laucher is very cool, because you can edit FAV files and can easily change emumashine call. I created yesterday CPS1 und CPS2 systems. Almost all CPS1 run in mame-libretro almost all CPS2 run in FBA.
But one or two romes of CPS1 do only run in FBA... But I have no further game selection out of ES because the CPS1 system is marked as mame-libretro. So you pick out that little coconut via FAV menu and just toggle from mame to fba by editing FAV file second line :)
-
@cyperghost said in [dev] Little favorite launcher (third attempt - ready for testers!) v.055! - last release I am finished:
@meleu Sorry my friend that does not work!
I can't create a FAV on every time I run a ROM.
I need an exact entrypoint if I want to change some settings and this entry point can only be the runcommand.sh in it's selection mode.I think you misunderstood what that PR really is. It's a way to launch a user script during runcommand only if user invoke runcommand menu and choose the option to launch the script. IMHO your method to create those .fav files fits perfectly in this feature.
Sorry if I'm not being very clear, I'll try to describe it better when I update the the wiki. ;-)
-
Ah understand....
Yes that should work....
Am I able to select specific binaries/bash schript? Or does they run all if they are called? -
@meleu Wonderfull! That's really a hit! Works like a charm. Now I can add two options....
Add Favourites and Delete Favourites! -
@meleu even the EXIT codes work as they should... nice work!
-
@cyperghost BuZz is a genius! :-)
-
@meleu I've bumped the fav-launcher to v0.85 now
Maybe you can give it a chance. With the User Menu it is now possible to add more than one FAV-system
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.