Skip to content

Commit

Permalink
Merge pull request #3548 from cmitu/runcommand-libretro-updates
Browse files Browse the repository at this point in the history
runcommand: add more parameters for RetroArch
  • Loading branch information
joolswills authored Jun 15, 2022
2 parents 8e2fda6 + 553c4fe commit 9cb9e56
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scriptmodules/supplementary/runcommand/runcommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ function main_menu() {
;;
L)
COMMAND+=" --verbose"
VERBOSE=1
return 0
;;
U)
Expand Down Expand Up @@ -1101,6 +1102,14 @@ function retroarch_append_config() {
iniSet "video_fullscreen_y" "${dim[1]}"
fi
# set `libretro_directory` to the core parent folder
local core_dir=$(echo "$COMMAND" | grep -Eo " $ROOTDIR/libretrocores/.*libretro\.so " | head -n 1)
core_dir=$(dirname "$core_dir")
[[ -n "$core_dir" ]] && iniSet "libretro_directory" "$core_dir"
# if verbose logging is on, set core logging to INFO
[[ "$VERBOSE" -eq 1 ]] && iniSet "libretro_log_level" "1"
# if the ROM has a custom configuration then append that too
if [[ -f "$ROM.cfg" ]]; then
conf+="'|'\"$ROM.cfg\""
Expand Down

0 comments on commit 9cb9e56

Please sign in to comment.