Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runcommand: do not replace %ROM% or %ROM_BN% tokens when empty #3551

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scriptmodules/supplementary/runcommand/runcommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,8 @@ function get_sys_command() {
COMMAND="$(default_emulator get emu_cmd)"

# replace tokens
COMMAND="${COMMAND//\%ROM\%/\"$ROM\"}"
COMMAND="${COMMAND//\%BASENAME\%/\"$ROM_BN\"}"
COMMAND="${COMMAND//\%ROM\%/${ROM:+\"${ROM}\"}}"
COMMAND="${COMMAND//\%BASENAME\%/${ROM_BN:+\"${ROM_BN}\"}}"

# special case to get the last 2 folders for quake games for the -game parameter
# remove everything up to /quake/
Expand Down