mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 23:45:39 +00:00
RUN_GAME: various fixes, time up
This commit is contained in:
parent
0cafedbe70
commit
04ebb5c5d6
|
@ -997,7 +997,7 @@
|
||||||
"url": "https://retrodeck.readthedocs.io/en/latest/wiki_emulator_guides/pcsx2/pcsx2-guide/",
|
"url": "https://retrodeck.readthedocs.io/en/latest/wiki_emulator_guides/pcsx2/pcsx2-guide/",
|
||||||
"system": "ps2",
|
"system": "ps2",
|
||||||
"launch": "pcsx2-qt",
|
"launch": "pcsx2-qt",
|
||||||
"launch_args": "-batch $game",
|
"launch-args": "-batch $game",
|
||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
"ask_to_exit": true,
|
"ask_to_exit": true,
|
||||||
|
@ -1038,7 +1038,7 @@
|
||||||
"url": "https://retrodeck.readthedocs.io/en/latest/wiki_emulator_guides/vita3k/vita3k-guide/",
|
"url": "https://retrodeck.readthedocs.io/en/latest/wiki_emulator_guides/vita3k/vita3k-guide/",
|
||||||
"system": "psvita",
|
"system": "psvita",
|
||||||
"launch": "Vita3K",
|
"launch": "Vita3K",
|
||||||
"launch_args": "-r $game.psvita"
|
"launch-args": "-r $game.psvita"
|
||||||
},
|
},
|
||||||
"rpcs3": {
|
"rpcs3": {
|
||||||
"name": "RPCS3",
|
"name": "RPCS3",
|
||||||
|
@ -1046,6 +1046,7 @@
|
||||||
"url": "https://retrodeck.readthedocs.io/en/latest/wiki_emulator_guides/rpcs3/rpcs3-guide/",
|
"url": "https://retrodeck.readthedocs.io/en/latest/wiki_emulator_guides/rpcs3/rpcs3-guide/",
|
||||||
"system": "ps3",
|
"system": "ps3",
|
||||||
"launch": "rpcs3",
|
"launch": "rpcs3",
|
||||||
|
"launch-override": "cd $(dirname $game) && rpcs3 $game",
|
||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
"ask_to_exit": true
|
"ask_to_exit": true
|
||||||
|
|
|
@ -955,9 +955,18 @@ run_game() {
|
||||||
log d "Command: retroarch -L $core_path \"$game\""
|
log d "Command: retroarch -L $core_path \"$game\""
|
||||||
eval "retroarch -L $core_path \"$game\""
|
eval "retroarch -L $core_path \"$game\""
|
||||||
else
|
else
|
||||||
# Parse emulator launch command and optional arguments from the JSON file
|
# Check if launch-override exists
|
||||||
|
local launch_override=$(jq -r ".emulator.$emulator.\"launch-override\"" "$features")
|
||||||
|
if [[ "$launch_override" != "null" ]]; then
|
||||||
|
# Use launch-override
|
||||||
|
launch_override=${launch_override//\$game/\"$game\"}
|
||||||
|
log d "Using launch-override: $launch_override"
|
||||||
|
eval "$launch_override"
|
||||||
|
else
|
||||||
|
# Use standard launch and launch-args
|
||||||
local launch_command=$(jq -r ".emulator.$emulator.launch" "$features")
|
local launch_command=$(jq -r ".emulator.$emulator.launch" "$features")
|
||||||
local launch_args=$(jq -r ".emulator.$emulator.\"launch-args\"" "$features")
|
local launch_args=$(jq -r ".emulator.$emulator.\"launch-args\"" "$features")
|
||||||
|
log d "launch args: $launch_args"
|
||||||
|
|
||||||
# Only add launch_args if they are not null
|
# Only add launch_args if they are not null
|
||||||
if [[ "$launch_args" != "null" ]]; then
|
if [[ "$launch_args" != "null" ]]; then
|
||||||
|
@ -970,4 +979,5 @@ run_game() {
|
||||||
eval "$launch_command \"$game\""
|
eval "$launch_command \"$game\""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
Loading…
Reference in a new issue