Skip to content

Commit 9cb9e56

Browse files
authored
Merge pull request #3548 from cmitu/runcommand-libretro-updates
runcommand: add more parameters for RetroArch
2 parents 8e2fda6 + 553c4fe commit 9cb9e56

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scriptmodules/supplementary/runcommand/runcommand.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ function main_menu() {
701701
;;
702702
L)
703703
COMMAND+=" --verbose"
704+
VERBOSE=1
704705
return 0
705706
;;
706707
U)
@@ -1101,6 +1102,14 @@ function retroarch_append_config() {
11011102
iniSet "video_fullscreen_y" "${dim[1]}"
11021103
fi
11031104
1105+
# set `libretro_directory` to the core parent folder
1106+
local core_dir=$(echo "$COMMAND" | grep -Eo " $ROOTDIR/libretrocores/.*libretro\.so " | head -n 1)
1107+
core_dir=$(dirname "$core_dir")
1108+
[[ -n "$core_dir" ]] && iniSet "libretro_directory" "$core_dir"
1109+
1110+
# if verbose logging is on, set core logging to INFO
1111+
[[ "$VERBOSE" -eq 1 ]] && iniSet "libretro_log_level" "1"
1112+
11041113
# if the ROM has a custom configuration then append that too
11051114
if [[ -f "$ROM.cfg" ]]; then
11061115
conf+="'|'\"$ROM.cfg\""

0 commit comments

Comments
 (0)