private void detectGame() { game = FileHelper.DetermineGameFrom(_filename); if (game == FileHelper.GameList.Unknown) { System.Windows.Forms.MessageBox.Show("Error, unknown game - Gold Box Explorer determines the game by the presence of a .CFG file that should be present in the game's directory. If this file does not exist, try running the game (eg: start.exe) to generate it."); throw new FileNotFoundException("Error, unknown game - Gold Box Explorer determines the game by the presence of a .CFG file that should be present in the game's directory. If this file does not exist, try running the game (eg: start.exe) to generate it."); } }
private void detectGame() { game = FileHelper.DetermineGameFrom(_filename); if (game == FileHelper.GameList.Unknown) { System.Windows.Forms.MessageBox.Show("Error, unknown game - Gold Box Explorer determines the game by the presence of a .CFG file that should be present in the game's directory. If this file does not exist, try running the game (eg: start.exe) to generate it."); throw new FileNotFoundException("Error, unknown game - Gold Box Explorer determines the game by the presence of a .CFG file that should be present in the game's directory. If this file does not exist, try running the game (eg: start.exe) to generate it."); } }