/// <summary> /// Initialise settings with defaults. /// </summary> public Settings() { ExecutablePath = @"C:\MAME\MAME64.EXE"; CommandLineOptions = "-skip_gameinfo -nowindow -noswitchres -sleep -triplebuffer -sound none"; MinutesPerGame = 5; CloneScreen = true; HotKeys = true; LayoutSettings = new LayoutSettings(); AdvancedSettings = new AdvancedSettings(); }
public MameScreen( Settings settings, LayoutSettings layoutSettings, GamePlayManager gamePlayManager, PowerManager powerManager) : base(layoutSettings, powerManager) { _settings = settings; _gamePlayManager = gamePlayManager; _powerManager = powerManager; _splashSettings = layoutSettings.SplashScreen; }
private void ResetToDefaults(object sender, EventArgs e) { // Preserve MAME executable path var executablePath = _settings.ExecutablePath; _settings = new Settings { ExecutablePath = executablePath }; _layoutSettings = _settings.LayoutSettings; _advancedSettings = _settings.AdvancedSettings; SetFieldsFromSettings(); }
public ConfigForm( Settings settings, LayoutSettings layoutSettings, AdvancedSettings advancedSettings, GameList gameList, GeneralSettingsStore generalSettingsStore, GameListStore gameListStore, GameListBuilder gameListBuilder, ListViewSorter listViewSorter) { _settings = settings; _layoutSettings = layoutSettings; _advancedSettings = advancedSettings; _generalSettingsStore = generalSettingsStore; _gameListStore = gameListStore; _gameList = gameList; _gameListBuilder = gameListBuilder; _lvwColumnSorter = listViewSorter; InitializeComponent(); }