Add ROMs directly to Steam for launching
A user reported:
I've been able to manage to launch specific roms via the CLI as flatpak run --command=dolphin-emu-wrapper net.retrodeck.retrodeck -e "/run/media/mmcblk0p1/retrodeck/roms/wii/Super Mario Galaxy 2 (USA) (En,Fr,Es).rvz" -b this makes possible to add them directly to the steam library
It may be possible to configure Steam ROM Manager to launch games directly through Steam using the RetroDECK flatpak.
Continuation of this: https://github.com/XargonWan/RetroDECK/issues/80
Could be possible to add a game menu entry that permits to add the selected game to steam? Just like the custom "Retrodeck configurator" in the global menu.
This would need some resarch and maybe some C++ expert to deeply patch ES-DE. Not impossible tho.
We would need to gather the data that the menu is gathering when the selected game is launched and then the resoulting string (that is a bash command) should be passed to tho bash.
But with this method we may skip some important parts such a possible per-launch script that we may introduce in the future.
Another option should be integrate a cli to es-de to ask it to launch a specific game. But the C++ skills here should be even higher and at the moment none in the crew got these skills afaik.
read_dom () {
local IFS=\>
read -d \< ENTITY CONTENT
}
for system in PATH
do
while read_dom; do
if [[ $ENTITY = "/game" ]]; then
if [[ $fav = "true" ]]; then
echo $name
fi
name=""
path=""
fav=""
elif [[ $ENTITY = "favorite" ]]; then
fav=$CONTENT
elif [[ $ENTITY = "path" ]]; then
path=$CONTENT
elif [[ $ENTITY = "name" ]]; then
name=$CONTENT
fi
done < "$system/gamelist.xml"
done
This is a simple bash script that I tried to integrate in the configurator. It parses the gamelist.xml file and gives he favorite games. I have only to fix the installation PATH, at the moment is hard coded, and then try to build the shortcut.vdf file for steam. I know that this will be only a temp fix but it is just to have the features, then can be refined by somebody.
Steps:
- [x] Add favorites to Steam (without auto deletion)
- [x] Initial Configurator Integration
- [x] Read alternate emulator data, game first, then system
- [x] Sync favorites to Steam (with deletion)
- [ ] Godot Integration
- [ ] Scrape the games on Steam (BoilR)
Some info were here: https://github.com/XargonWan/RetroDECK/issues/600