FRAMEWORK: removing the start argument in favour of running a game directly by passing the game to retrodeck.sh directly.

This commit is contained in:
XargonWan 2024-12-18 10:06:50 +09:00
parent 9de0c7eabe
commit a4ccd591de
2 changed files with 13 additions and 12 deletions

View file

@ -82,7 +82,7 @@
<li>Because of this, Favorites collection is now enabled by default on ES-DE</li>
<li>New Configurator completely written in GODOT, now with controller support and many more features for you to discover</li>
<li>Cli entry --configurator now opens the new Configurator, while --legacy-configurator opens the old, zenity, one</li>
<li>New run game engine added to run games via cli, just run `flatpak run net.retrodeck.retrodeck start retrodeck/roms/system/game.ext`, `--help` for more info</li>
<li>New run game engine added to run games via cli, just run `flatpak run net.retrodeck.retrodeck retrodeck/roms/system/game.ext`, `--help` for more info</li>
<li>MIME Type added: this means that you can "open with" or double click your games and run them via RetroDECK thanks to the engine descripted above</li>
<li>ES-DE Updated to 3.1.1 with language support and more</li>
<li>ES-DE main menu tide up, because of our configurator there were too many entries, moved ES-DE specific configs inside a custom menu</li>

View file

@ -34,11 +34,12 @@ Arguments:
--reset-component <component> \t Reset one or more component or emulator configs to the default values
--reset-retrodeck \t Starts the initial RetroDECK installer (backup your data first!)
start [-e emulator] [-s system] [-m] <game_path>\t Start a game from cli using the default emulator or\n\t\t\t\t\t\t\t the one defined in ES-DE for game or system
\t start arguments:
Game Launch:
[<options>] <game_path> \t Start a game using the default emulator or\n\t\t\t\t\t\t the one defined in ES-DE for game or system
\t Options:
\t \t-e (emulator)\t Run the game with the defined emulator (optional)
\t \t-s (system)\t Force the game running with the defined system, for example running a gb game on gba (optional)
\t \t-m (manual)\t Manual mode: show the list of available emulator to chose from (optional)
\t \t-m (manual)\t Manual mode: show the list of available emulator to choose from (optional)
For flatpak run specific options please run: flatpak run -h
@ -50,11 +51,6 @@ https://retrodeck.net
echo "RetroDECK v$version"
exit
;;
start*)
shift # Remove "start"
run_game "$@"
exit
;;
--info-msg*)
echo "RetroDECK v$version"
echo "RetroDECK config file is in: $rd_conf"
@ -126,9 +122,14 @@ https://retrodeck.net
exit 1
;;
*)
validate_input "$i"
if [[ ! $input_validated == "true" ]]; then
echo "Please specify a valid option. Use -h for more information."
# Assume unknown arguments are game start arguments
if [ -f "$i" ]; then
echo "Attempting to start the game: $i"
run_game "$@"
exit
else
echo "Command or File '$i' not found. Ignoring argument and continuing..."
break # Continue with the main program
fi
;;
esac