private void VerifyGameNotAlreadyOpenInAnotherEditor()
{
try
{
try
{
File.Delete(LOCK_FILE_NAME);
}
catch (UnauthorizedAccessException)
{
File.SetAttributes(LOCK_FILE_NAME, FileAttributes.Normal);
File.Delete(LOCK_FILE_NAME);
}
}
catch
{
throw new AGSEditorException("Cannot load the game, because it is already open in another copy of the AGS Editor");
}
}