[gens-sdl] EmuLoop: If a TMSS ROM filename is specified, set it.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Mon, 7 Sep 2015 16:33:45 +0000 (12:33 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Mon, 7 Sep 2015 16:33:45 +0000 (12:33 -0400)
If EmuMD can load the TMSS ROM can be loaded, TMSS will be enabled.

src/gens-sdl/EmuLoop.cpp

index 5d6d337..b3ab686 100644 (file)
@@ -549,6 +549,12 @@ int EmuLoop::run(const Options *options)
                d->rom->select_z_entry(d->rom->get_z_entry_list());
        }
 
+       // Is a TMSS ROM filename specified?
+       if (options->is_tmss_enabled()) {
+               EmuContext::SetTmssRomFilename(options->tmss_rom_filename());
+               EmuContext::SetTmssEnabled(true);
+       }
+
        // Is the ROM format supported?
        if (!EmuContextFactory::isRomFormatSupported(d->rom)) {
                // ROM format is not supported.