@susan
Ask you ask me, I put this on forum.
I begun today to transfer my mame roms from Recalbox to Batocera, and I had some strange behavior that I could not explain. So as example spacegun.zip, a game mirrored in cabinet and where 2 shaders are to apply, first to flip the game with flip-horizontal.glsl, shader that I put into /recalbox/share/myshaders. Now in Recalbox, after defining in Retroarch there is a file spacegun.cfg created (with option game override) into a folder MAME 2003. With this inside
config_save_on_exit = "false"
aspect_ratio_index = "21"
video_shader = "~/.config/retroarch/config/retroarchcustom.glslp"
input_player3_joypad_index = "2"
input_player4_joypad_index = "3"
input_player5_joypad_index = "4"
input_player6_joypad_index = "5"
input_player7_joypad_index = "6"
input_player8_joypad_index = "7"
input_player9_joypad_index = "8"
input_player10_joypad_index = "9"
input_player11_joypad_index = "10"
input_player12_joypad_index = "11"
input_player13_joypad_index = "12"
input_player14_joypad_index = "13"
input_player15_joypad_index = "14"
input_player16_joypad_index = "15"
and in retroarchcustom.glsp you have
shaders = "2"
shader0 = "/recalbox/share/myshaders/flip-horizontal.glsl"
wrap_mode0 = "clamp_to_border"
mipmap_input0 = "false"
alias0 = ""
float_framebuffer0 = "false"
srgb_framebuffer0 = "false"
shader1 = "/recalbox/share_init/shaders/shaders_glsl/scalehq/shaders/2xScaleHQ.glsl"
filter_linear1 = "true"
wrap_mode1 = "clamp_to_border"
mipmap_input1 = "false"
alias1 = ""
float_framebuffer1 = "false"
srgb_framebuffer1 = "false"
scale_type_x1 = "source"
scale_x1 = "2.000000"
scale_type_y1 = "source"
scale_y1 = "2.000000"
parameters = "MIRROR"
MIRROR = "1.000000"
game is running correct in PI3 Titanic 🙂
Now I copy my rom to Batocera but not the configuration files.
In Batocera, then I make the same, and reconfigurate my retroarch inside the game and specific for the game
and saved with "override game configuration.
He creates a file in folder mame2003 (diff name from RB but ok, after retroarch should be MAME2003)
but this file is hudge and had no relation to flip-horizontal.glsl and other shaders.
aspect_ratio_index = "22"
assets_directory = "~/.config/retroarch/assets"
audio_driver = "alsa"
audio_enable = "true"
audio_latency = "64"
audio_max_timing_skew = "0.050000"
audio_out_rate = "48000"
audio_rate_control = "true"
audio_resampler = "sinc"
audio_resampler_quality = "3"
audio_sync = "true"
auto_overrides_enable = "true"
auto_remaps_enable = "true"
auto_screenshot_filename = "true"
auto_shaders_enable = "true"
builtin_imageviewer_enable = "true"
builtin_mediaplayer_enable = "true"
camera_driver = "null"
content_database_path = "~/.config/retroarch/database/rdb"
content_history_size = "100"
content_show_add = "true"
content_show_favorites = "true"
content_show_history = "true"
content_show_images = "true"
content_show_music = "true"
content_show_netplay = "true"
content_show_playlists = "true"
content_show_settings = "true"
content_show_video = "true"
core_assets_directory = "~/.config/retroarch/downloads"
core_set_supports_no_game_enable = "true"
core_updater_auto_extract_archive = "true"
core_updater_buildbot_assets_url = "http://buildbot.libretro.com/assets/"
core_updater_buildbot_url = "http://buildbot.libretro.com/nightly/linux/x86_64/latest/"
crt_switch_resolution_super = "2560"
crt_video_refresh_rate = "59.940060"
cursor_directory = "~/.config/retroarch/database/cursors"
desktop_menu_enable = "true"
dpi_override_value = "200"
framecount_show = "true"
game_specific_options = "true"
history_list_enable = "true"
input_bind_hold = "2"
input_bind_timeout = "5"
input_descriptor_label_show = "true"
input_driver = "x"
input_duty_cycle = "3"
input_overlay_enable_autopreferred = "true"
input_player10_joypad_index = "9"
input_player11_joypad_index = "10"
input_player12_joypad_index = "11"
input_player13_joypad_index = "12"
input_player14_joypad_index = "13"
input_player15_joypad_index = "14"
input_player16_joypad_index = "15"
input_player2_joypad_index = "1"
input_player3_joypad_index = "2"
input_player4_joypad_index = "3"
input_player5_joypad_index = "4"
input_player6_joypad_index = "5"
input_player7_joypad_index = "6"
input_player8_joypad_index = "7"
input_player9_joypad_index = "8"
input_poll_type_behavior = "2"
input_remap_binds_enable = "true"
input_remapping_directory = "~/.config/retroarch/config/remaps"
input_turbo_period = "6"
keyboard_gamepad_enable = "true"
keyboard_gamepad_mapping_type = "1"
led_driver = "null"
libretro_directory = "~/.config/retroarch/cores"
libretro_info_path = "~/.config/retroarch/cores"
libretro_log_level = "1"
load_dummy_on_core_shutdown = "true"
location_driver = "null"
materialui_icons_enable = "true"
menu_battery_level_enable = "true"
menu_core_enable = "true"
menu_font_color_blue = "255"
menu_font_color_green = "255"
menu_font_color_red = "255"
menu_footer_opacity = "1.000000"
menu_framebuffer_opacity = "0.900000"
menu_header_opacity = "1.000000"
menu_horizontal_animation = "true"
menu_linear_filter = "true"
menu_mouse_enable = "true"
menu_navigation_browser_filter_supported_extensions_enable = "true"
menu_navigation_wraparound_enable = "true"
menu_pause_libretro = "true"
menu_shader_pipeline = "2"
menu_show_configurations = "true"
menu_show_core_updater = "true"
menu_show_help = "true"
menu_show_information = "true"
menu_show_latency = "true"
menu_show_load_content = "true"
menu_show_load_core = "true"
menu_show_online_updater = "true"
menu_show_overlays = "true"
menu_show_quit_retroarch = "true"
menu_show_reboot = "true"
menu_show_rewind = "true"
menu_show_shutdown = "true"
menu_throttle_framerate = "true"
menu_thumbnails = "3"
menu_timedate_enable = "true"
menu_wallpaper_opacity = "0.300000"
midi_driver = "null"
midi_input = "Off"
midi_output = "Off"
midi_volume = "100"
netplay_allow_slaves = "true"
netplay_check_frames = "600"
netplay_ip_port = "55435"
netplay_mitm_server = "nyc"
netplay_nat_traversal = "true"
netplay_public_announce = "true"
netplay_share_analog = "1"
netplay_share_digital = "1"
network_cmd_port = "55355"
network_remote_base_port = "55400"
overlay_directory = "~/.config/retroarch/overlay"
playlist_directory = "~/.config/retroarch/playlists"
playlist_entry_remove = "true"
playlist_entry_rename = "true"
quick_menu_show_add_to_favorites = "true"
quick_menu_show_cheats = "true"
quick_menu_show_controls = "true"
quick_menu_show_information = "true"
quick_menu_show_options = "true"
quick_menu_show_recording = "true"
quick_menu_show_save_content_dir_overrides = "true"
quick_menu_show_save_core_overrides = "true"
quick_menu_show_save_game_overrides = "true"
quick_menu_show_save_load_state = "true"
quick_menu_show_shaders = "true"
quick_menu_show_streaming = "true"
quick_menu_show_take_screenshot = "true"
quick_menu_show_undo_save_load_state = "true"
record_driver = "ffmpeg"
rewind_buffer_size_step = "10"
rgui_background_filler_thickness_enable = "true"
rgui_border_filler_enable = "true"
rgui_border_filler_thickness_enable = "true"
rgui_config_directory = "~/.config/retroarch/config"
run_ahead_frames = "1"
slowmotion_ratio = "3.000000"
suspend_screensaver_enable = "true"
threaded_data_runloop_enable = "true"
thumbnails_directory = "~/.config/retroarch/thumbnails"
ui_companion_start_on_boot = "true"
ui_menubar_enable = "true"
video_allow_rotate = "true"
video_aspect_ratio = "-1.000000"
video_crop_overscan = "true"
video_driver = "gl"
video_font_enable = "true"
video_font_size = "32.000000"
video_force_aspect = "true"
video_max_swapchain_images = "3"
video_msg_bgcolor_opacity = "1.000000"
video_record_quality = "4"
video_record_scale_factor = "1"
video_refresh_rate = "59.940060"
video_scale = "3.000000"
video_shader_enable = "true"
video_stream_port = "56400"
video_stream_quality = "6"
video_stream_scale_factor = "1"
video_vsync = "true"
video_window_opacity = "100"
video_window_show_decorations = "true"
video_windowed_fullscreen = "true"
wifi_driver = "null"
xmb_alpha_factor = "75"
xmb_menu_color_theme = "4"
xmb_scale_factor = "100"
xmb_shadows_enable = "true"
The mistery is that I could not find the copy of the specific retroarch config for this game. But it must be some-where, because he override correctly at the beginning of the game, and game runs with shaders.
So I downloaded the full /share and scanned all the folders for "flip-horizontal.glsl". There is in no file such word to find in the complet /share directory.
Only solution, it is hiding somewhere in the verbidden folders...
So I downloaded also the other folders over filezilla and found retroarchcustom.glslp
It was hiding into place /share_init/shaders/presets/mame2003/retroarchcustom.glslp as it should be located instead into /share/system/.config/retroarch/config/retroarchcustom.glslp with inside
alias0 = ""
alias1 = ""
feedback_pass = "0"
filter_linear1 = "true"
float_framebuffer0 = "false"
float_framebuffer1 = "false"
mipmap_input0 = "false"
mipmap_input1 = "false"
MIRROR = "1.000000"
parameters = "MIRROR"
scale_type_x1 = "source"
scale_type_y1 = "source"
scale_x1 = "2.000000"
scale_y1 = "2.000000"
shader0 = "/recalbox/share/myshaders/flip-horizontal.glsl"
shader1 = "/recalbox/share_init/shaders/shaders_glsl/scalehq/shaders/2xScaleHQ.glsl"
shaders = "2"
srgb_framebuffer0 = "false"
srgb_framebuffer1 = "false"
wrap_mode0 = "clamp_to_border"
wrap_mode1 = "clamp_to_border"
So, it should move to the share.