コード例 #1
0
    private void MakeDirReady()
    {
        if (CFileManager.IsDirectoryExist(s_httpFileRootDir) == false)
        {
            CFileManager.CreateDirectory(s_httpFileRootDir);
        }

        if (!CFileManager.IsDirectoryExist(m_dir))
        {
            CFileManager.CreateDirectory(m_dir);
        }
    }
コード例 #2
0
 public CCachedTextureManager()
 {
     if (!CFileManager.IsDirectoryExist(s_cachedTextureDirectory))
     {
         CFileManager.CreateDirectory(s_cachedTextureDirectory);
     }
     if (CFileManager.IsFileExist(s_cachedTextureInfoSetFileFullPath))
     {
         byte[] data   = CFileManager.ReadFile(s_cachedTextureInfoSetFileFullPath);
         int    offset = 0;
         this.m_cachedTextureInfoSet.Read(data, ref offset);
     }
 }
コード例 #3
0
 public CCachedTextureManager()
 {
     this.m_cachedTextureInfoSet = new CCachedTextureInfoSet();
     if (!CFileManager.IsDirectoryExist(CCachedTextureManager.s_cachedTextureDirectory))
     {
         CFileManager.CreateDirectory(CCachedTextureManager.s_cachedTextureDirectory);
     }
     if (CFileManager.IsFileExist(CCachedTextureManager.s_cachedTextureInfoSetFileFullPath))
     {
         byte[] data = CFileManager.ReadFile(CCachedTextureManager.s_cachedTextureInfoSetFileFullPath);
         int    num  = 0;
         this.m_cachedTextureInfoSet.Read(data, ref num);
     }
 }