1
0
Fork 0

fixed a few dircache issues, removed saving of file status in cache

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@633
This commit is contained in:
Ulf Wohlers 2003-01-15 23:04:54 +00:00
parent 43d965ec60
commit da6cf16ae9
3 changed files with 41 additions and 28 deletions

View file

@ -39,7 +39,7 @@ public:
void SetBaseDir (const char* path);
void SetDirSort (TDirSort sort) { sortDirType = sort; };
bool OpenDir (const char* path);
bool ReadDir (struct dirent* result,struct stat* status);
bool ReadDir (struct dirent* result);
void ExpandName (char* path);
char* GetExpandName (const char* path);
@ -61,7 +61,6 @@ public:
bool isDir;
Bit16u shortNr;
Bit16u compareCount;
struct stat status;
// contents
std::vector<CFileInfo*> fileList;
std::vector<CFileInfo*> longNameList;
@ -73,7 +72,7 @@ private:
Bit16s GetLongName (CFileInfo* info, char* shortname);
void CreateShortName (CFileInfo* dir, CFileInfo* info);
Bit16u CreateShortNameID (CFileInfo* dir, const char* name);
bool SetResult (CFileInfo* dir, struct dirent* result, struct stat* status, Bit16u entryNr);
bool SetResult (CFileInfo* dir, struct dirent* result, Bit16u entryNr);
bool IsCachedIn (CFileInfo* dir);
CFileInfo* FindDirInfo (const char* path, char* expandedPath);
Bit16s RemoveSpaces (char* str);