Пример #1
0
        private void LoadSelectedROM()
        {
            if (selectedGame == null)
            {
                game = null;
                return;
            }

            //load clean rom if not already loaded
            if (game == null)
            {
                game = LoadROM(selectedGame.Text);
            }
            else if (game.fileName != selectedGame.Text)
            {
                game = LoadROM(selectedGame.Text);
            }
        }
Пример #2
0
        // Rom Handling Methods

        private static ROMImage LoadROM(string path)
        {
            ROMImage rom = new ROMImage(path);

            return(rom);
        }