The bad news is that the lirc-rpi kernel module has been phased out. The good news is its simple to patch for mce remotes. Here's what you have to do:
1) in /boot/config.txt replace
dtoverlay=lirc-rpi
with:
dtoverlay=gpio-ir,gpio_pin=18,gpio_pull=1,rc-map-name=rc-rc6-mce
2) Put a valid lircd.conf file into /userdata/system/.config/lirc/
3) run batocera-save-overlay
**It did not work when I tried softlinking from /userdata/system/.config/lirc/lircd.conf back to the /etc/lirc/lircd.conf file. I had to place a file into the /userdata branch and build the overlay.
Nicholas, please fix this for 5.24.