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); } }
// Rom Handling Methods private static ROMImage LoadROM(string path) { ROMImage rom = new ROMImage(path); return(rom); }