You can try the traditional method but you will be limited to games marked “supported” by MAME.
Do what @sanchezmike01 said and create an “fmtmarty” folder in your roms folder. Within that folder put the BIOS file (It should not need to be unzipped.)
Your fmtmarty.opt file needs to be…
mame_alternate_renderer = "enabled"
mame_altres = "640x480"
mame_auto_save = "disabled"
mame_boot_from_cli = "disabled"
mame_boot_to_bios = "disabled"
mame_boot_to_osd = "disabled"
mame_buttons_profiles = "enabled"
mame_cheats_enable = "disabled"
mame_cpu_overclock = "150"
mame_lightgun_mode = "none"
mame_mame_4way_enable = "disabled"
mame_mame_paths_enable = "disabled"
mame_media_type = "rom"
mame_mouse_enable = "enabled"
mame_read_config = "disabled"
mame_saves = "game"
mame_softlists_auto_media = "enabled"
mame_softlists_enable = "enabled"
mame_throttle = "disabled"
mame_write_config = "disabled"
(The…
mame_alternate_renderer = "enabled"
mame_altres = "640x480"
…lines keeps the resolution from dynamically changing from the boot screen. It may not be needed for the Marty.)
For Flashback the ISO files (Or CHD if you can get it.) needs to be in a “flashb” folder.
You will also need a “flashb.zip” in the root, next to the BIOS file.
In this case the zip can just be a dummy text file. For other games (i.e. Kyrandia) it needs to be a user or boot disk from the MAME Software List Roms collection.
In your “Retroarch/system/mame/hash” folder you will need the “fmtowns_cd.xml” from a full mame standalone install.
Once you have this setup, your command line can simply be…
retroarch -L “E:\RetroArch\cores\mame_libretro.dll” “E:\roms\fmtmarty\flashb.zip”
The XML takes care of everything else.
A search of the XML will tell you what folders you need to put your ISO files in, what ZIP file you may or may not need, and whether the game is supported or not.
It is a tedious setup but it only needs to be done once.