private void MakeDirReady() { if (CFileManager.IsDirectoryExist(s_httpFileRootDir) == false) { CFileManager.CreateDirectory(s_httpFileRootDir); } if (!CFileManager.IsDirectoryExist(m_dir)) { CFileManager.CreateDirectory(m_dir); } }
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); } }
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); } }