NES Super Mario Bros? Or MAME? I’m assuming NES. I’ll have to check the syntax for booting an NES game…
That said, in general you could edit the last line of /etc/profile
. Replace “emulationstation” with the command line to load the game. For example “/opt/retropie/emulators/mame4all/mame dkong”
[Edit]
I worked out the syntax. You would replace the last line in /etc/profile
with this
[ -n "${SSH_CONNECTION}" ] || /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/neslibretro/fceumm_libretro.so "/home/pi/RetroPie/roms/nes/Super Mario Bros. (World).zip"
(Check to make sure your ROM is the same name as mine)