private void DeleteObsoleteFilesFrom272()
{
string[] filesToDelete = { "ac2game.ags", "ac2game.dta", "editor.dat", "acwin.dat",
"backup_ac2game.dta", "backup_editor.dat", "Edit this .AGSGame",
@"Compiled\music.vox" };
foreach (string fileName in filesToDelete)
{
if (File.Exists(fileName))
{
try
{
File.Delete(fileName);
}
catch (Exception ex)
{
Factory.GUIController.ShowMessage("Unable to remove file '" + fileName + "' because of an error: " + ex.Message, MessageBoxIcon.Warning);
}
}
}
}