private bool TryRecoverReadWriteList()
            {
                string file       = Utility.Path.GetCombinePath(m_ResourceManager.m_ReadWriePath, ResourceListFileName);
                strng  backupFile = file + BackupFileSuffixName;

                try
                {
                    if (!File.Exists(backupFile))
                    {
                        return(false);
                    }

                    if (File.Exists(file))
                    {
                        File.Delete(file);
                    }

                    File.Move(backupFile, file);
                }
                catch
                {
                    return(false);
                }

                return(true);
            }
示例#2
0
 public bool hasListener(strng eventName)
 {
     return(this.eventListenerDic.ContainKeys[eventName]);
 }