1
0
Fork 0

Fixes for not using dirent structure as a result

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@788
This commit is contained in:
Sjoerd van der Berg 2003-03-24 09:54:50 +00:00
parent 2f759c0050
commit d4b640d29e
3 changed files with 26 additions and 18 deletions

View file

@ -40,7 +40,7 @@ public:
void SetBaseDir (const char* path);
void SetDirSort (TDirSort sort) { sortDirType = sort; };
bool OpenDir (const char* path, Bit16u& id);
bool ReadDir (Bit16u id, struct dirent* &result);
bool ReadDir (Bit16u id, char* &result);
void ExpandName (char* path);
char* GetExpandName (const char* path);
@ -78,7 +78,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, Bit16u entryNr);
bool SetResult (CFileInfo* dir, char * &result, Bit16u entryNr);
bool IsCachedIn (CFileInfo* dir);
CFileInfo* FindDirInfo (const char* path, char* expandedPath);
bool RemoveSpaces (char* str);
@ -115,7 +115,7 @@ public:
void SetBaseDir (const char* path);
void SetDirSort (TDirSort sort) {};
bool OpenDir (const char* path, Bit16u& id);
bool ReadDir (Bit16u id, struct dirent* &result);
bool ReadDir (Bit16u id, char * &result);
void ExpandName (char* path) {};
char* GetExpandName (const char* path) { return (char*)path; };
@ -212,4 +212,6 @@ private:
VFILE_Block * search_file;
};
#endif