public void switchEmulator() { GameParser gp = new GameParser (); switch (currentEmulator) { case 0: gameList = gp.loadMame (ConfigurationSettings.AppSettings ["MameInfos"]); gameList = gp.filterMameRoms (gameList, ConfigurationSettings.AppSettings ["MameRomFolder"]); break; case 1: gameList = gp.loadSnes (ConfigurationSettings.AppSettings ["SnesInfos"]); gameList = gp.filterSnesRoms (gameList, ConfigurationSettings.AppSettings ["SnesRomFolder"]); break; default: gameList = gp.loadMame (ConfigurationSettings.AppSettings ["MameInfos"]); //gameList = gp.filterMameRoms(gameList,ConfigurationSettings.AppSettings["MameRomFolder"]); break; } currentIndex = 0; }