private void UpdateEmulatorList() { emulators = emuMgr.GetAvailableEmulators(); roms = new List <RomData>(); var availableConsoles = emulators.SelectMany(f => f.ConsoleNames).Distinct().ToList(); foreach (var console in availableConsoles) { roms.AddRange(romMgr.GetRoms(console)); } emulatorTreeView.ChildUpdate(emulators, roms); }
public void Execute() { var emulators = emuMgr.GetAvailableEmulators().ToList(); var selectedEmulator = ConsoleUtilities.SelectEmulator(emulators); if (selectedEmulator != null) { var selectedRom = SelectRom(selectedEmulator); if (selectedRom != null) { emuMgr.RunEmulator(selectedEmulator, selectedRom); } } }