예제 #1
0
        public void removeFileDescriptor(FileDescriptor fileDesc)
        {
            if (File.Exists(fileDesc.FilePath))
            {
                fileDesc.delete();
            }
            else
            {
                fileDescMap.Remove(UIManager.Instance.normalizePath(fileDesc.FilePath));
                fileDescs.Remove(fileDesc);
                fireFileRemoved(new FileEventArgs(fileDesc));
            }

            ProjectManager.Instance.ActiveProject.saveGameData();
        }