Exemplo n.º 1
0
 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.");
     }
 }
Exemplo n.º 2
0
 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.");
     }
 }