Пример #1
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
            });
Пример #2
0
 public ScreenControlNDS(MelonDS nds)
 {
     //not sure if we actually need this nds instance yet
     this.nds = nds;
 }