private IEnumerable <PadSchema> GetSnes9xPadSchemas(Snes9x core) { // Only standard controller is supported on the left port yield return(StandardController(1)); Snes9x.SyncSettings syncSettings = core.GetSyncSettings(); LibSnes9x.RightPortDevice rightPort = syncSettings.RightPort; switch (rightPort) { default: case LibSnes9x.RightPortDevice.Joypad: yield return(StandardController(2)); break; case LibSnes9x.RightPortDevice.Justifier: yield return(Justifier(2)); break; case LibSnes9x.RightPortDevice.Mouse: yield return(Mouse(2)); break; case LibSnes9x.RightPortDevice.Multitap: yield return(StandardController(2)); yield return(StandardController(3)); yield return(StandardController(4)); yield return(StandardController(5)); break; case LibSnes9x.RightPortDevice.SuperScope: yield return(SuperScope(2)); break; } yield return(ConsoleButtons()); }
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 });
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 });