private void NewN64PluginSettings_Load(object sender, EventArgs e) { s = GetSettings(); ss = GetSyncSettings(); CoreTypeDropdown.PopulateFromEnum <N64SyncSettings.CoreType>(ss.Core); RspTypeDropdown.PopulateFromEnum <N64SyncSettings.RspType>(ss.Rsp); PluginComboBox.PopulateFromEnum <PluginType>(ss.VideoPlugin); var video_setting = s.VideoSizeX + " x " + s.VideoSizeY; var index = VideoResolutionComboBox.Items.IndexOf(video_setting); if (index >= 0) { VideoResolutionComboBox.SelectedIndex = index; } RicePropertyGrid.SelectedObject = ss.RicePlugin; Glidemk2PropertyGrid.SelectedObject = ss.Glide64mk2Plugin; GlidePropertyGrid.SelectedObject = ss.GlidePlugin; JaboPropertyGrid.SelectedObject = ss.JaboPlugin; }
public N64VideoPluginConfig( IMainFormForConfig mainForm, Config config, IEmulator emulator) { _mainForm = mainForm; _config = config; _emulator = emulator; // because mupen is a pile of garbage, this all needs to work even when N64 is not loaded if (_emulator is N64 n64) { _s = n64.GetSettings(); _ss = n64.GetSyncSettings(); } else { _s = _config.GetCoreSettings <N64, N64Settings>() ?? new N64Settings(); _ss = _config.GetCoreSyncSettings <N64, N64SyncSettings>() ?? new N64SyncSettings(); } InitializeComponent(); Icon = Properties.Resources.MonitorIcon; }
public N64ControllersSetup( MainForm mainForm, N64SyncSettings syncSettings) { _mainForm = mainForm; _syncSettings = syncSettings; InitializeComponent(); }
public N64ControllersSetup( IMainFormForConfig mainForm, N64SyncSettings syncSettings) { _mainForm = mainForm; _syncSettings = syncSettings; InitializeComponent(); Icon = Properties.Resources.GameControllerIcon; }
public N64VideoPluginConfig(ISettingsAdapter settable) { _settable = settable; _s = (N64Settings)_settable.GetSettings(); _ss = (N64SyncSettings)_settable.GetSyncSettings(); InitializeComponent(); Icon = Properties.Resources.MonitorIcon; }
private static void PutSyncSettings(N64SyncSettings s) { if (Global.Emulator is N64) { GlobalWin.MainForm.PutCoreSyncSettings(s); } else { Global.Config.PutCoreSyncSettings <N64>(s); } }
public static string BIZHAWK_GET_SYSTEMCORENAME(string systemName) { try { switch (systemName.ToUpper()) { case "GAMEBOY": if (Global.CoreConfig.GB_UseGBHawk) return "gbhawk"; else return "gambatte"; case "GBC": if (Global.CoreConfig.GB_UseGBHawk) return "gbhawk"; else return "gambatte"; case "NES": return (Global.CoreConfig.NES_InQuickNES ? "quicknes" : "neshawk"); case "SNES": if (MemoryDomains.MemoryInterfaces.ContainsKey("SGB WRAM")) return "bsnes_SGB"; return (Global.CoreConfig.SNES_InSnes9x ? "snes9x" : "bsnes"); case "GBA": return "mgba"; case "N64": N64SyncSettings ss = Global.Config.GetCoreSyncSettings<N64, N64SyncSettings>() ?? new N64SyncSettings(); return $"{ss.VideoPlugin}/{ss.Rsp}/{ss.Core}/{(ss.DisableExpansionSlot ? "NoExp" : "Exp")}"; default: break; } return systemName; } catch (Exception ex) { if (VanguardCore.ShowErrorDialog(ex) == DialogResult.Abort) throw new AbortEverythingException(); return null; } }