e.g. zsnes:
if folder-name and romfilename are identical (C:\attract\EMU\zsnes\roms\mygame1234\mygame1234.smc)
executable C:\attract\EMU\zsnes\zsnesw.exe
args -m "[romfilename]\[name].smc"
rompath C:\attract\EMU\zsnes\roms\
romext <DIR>
set as rom-extension <DIR>
and set as argument for zsnes -m "[romfilename]\[name].smc"
just adjust config to dreamcast arguments.
this was a good start for me, but does not factor in different rom types (for those that may have multiple). consider emulating with retroarch and using m3u files
args -m "[romfilename]\[name].m3u"
In this system, you can use many types of files like zip, iso, smc all under the same wheel/emulator. Look up
https://forums.libretro.com/t/multi-disc-for-sony-playstation-and-sega-saturn-using-m3u-files/14161One other thing that works for multiple rom types (in folders) under one wheel is to set up multiple emulators and then use "generate rom list" to combine them into one for a display. Both ways take some setting up.
also, a tip i'll note here is that [romfilename] and [rompath] add an extra / to the end which can mess up any build. most of the time the /\ effective command line cancels itself out, but some emu's apparently don't like that. I I used a relative path like: args -m "..\roms\snes\[name]\[name].m3u"