예제 #1
0
        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);
        }
예제 #2
0
        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);
                }
            }
        }