File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
scriptmodules/supplementary/runcommand Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -701,6 +701,7 @@ function main_menu() {
701
701
;;
702
702
L)
703
703
COMMAND+=" --verbose"
704
+ VERBOSE=1
704
705
return 0
705
706
;;
706
707
U)
@@ -1101,6 +1102,14 @@ function retroarch_append_config() {
1101
1102
iniSet " video_fullscreen_y" " ${dim[1]} "
1102
1103
fi
1103
1104
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
+
1104
1113
# if the ROM has a custom configuration then append that too
1105
1114
if [[ -f " $ROM .cfg" ]]; then
1106
1115
conf+=" ' |' \" $ROM .cfg\" "
You can’t perform that action at this time.
0 commit comments