AGS.Editor.AGSEditor.VerifyGameNotAlreadyOpenInAnotherEditor C# (CSharp) Метод

VerifyGameNotAlreadyOpenInAnotherEditor() приватный Метод

private VerifyGameNotAlreadyOpenInAnotherEditor ( ) : void
Результат void
        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");
            }
        }