Пример #1
0
        public static void DoDialog(IEmulator emulator, IDialogParent owner, bool isMovieActive)
        {
            var settable = ((MainForm)owner).GetSettingsAdapterForLoadedCoreUntyped();              //HACK
            var title    = $"{emulator.Attributes().CoreName} Settings";

            _ = emulator switch
            {
                MAME mame => DoMAMEDialog(owner, settable, mame.CurrentDriverSettings, isMovieActive: isMovieActive),
                NymaCore core => DoNymaDialogFor(owner, settable, title, core.SettingsInfo, isMovieActive: isMovieActive),
                _ => DoDialogFor(owner, settable, title, isMovieActive: isMovieActive)
            };
        }
Пример #2
0
        public static Bitmap Icon(this IEmulator core)
        {
            var attributes = core.Attributes();

            if (!attributes.Ported)
            {
                return(Properties.Resources.CorpHawkSmall);
            }

            return(core switch
            {
                QuickNES _ => Properties.Resources.QuickNes,
                LibsnesCore _ => Properties.Resources.bsnes,
                GPGX _ => Properties.Resources.genplus,
                Gameboy _ => Properties.Resources.gambatte,
                Snes9x _ => Properties.Resources.snes9x,
                MAME _ => Properties.Resources.mame,
                MGBAHawk _ => Properties.Resources.mGba,
                _ => null
            });
Пример #3
0
        public static Bitmap Icon(this IEmulator core)
        {
            var attributes = core.Attributes();

            if (!attributes.Ported)
            {
                return(Properties.Resources.CorpHawkSmall);
            }

            return(core switch
            {
                QuickNES _ => Properties.Resources.QuickNes,
                LibsnesCore _ => Properties.Resources.Bsnes,
                GPGX _ => Properties.Resources.GenPlus,
                Gameboy _ => Properties.Resources.Gambatte,
                Snes9x _ => Properties.Resources.Snes9X,
                MAME _ => Properties.Resources.Mame,
                MGBAHawk _ => Properties.Resources.Mgba,
                MelonDS _ => Properties.Resources.MelonDS,
                _ => null
            });