1
0
Fork 0

Enabled multiple FindFirst/Next

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1304
This commit is contained in:
Ulf Wohlers 2003-10-09 13:50:27 +00:00
parent 4fae68a7b6
commit 8100d28f82
3 changed files with 63 additions and 30 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: dos_system.h,v 1.15 2003-09-22 12:22:25 finsterr Exp $ */
/* $Id: dos_system.h,v 1.16 2003-10-09 13:50:27 finsterr Exp $ */
#ifndef DOSSYSTEM_H_
#define DOSSYSTEM_H_
@ -104,8 +104,8 @@ public:
char* GetExpandName (const char* path);
bool GetShortName (const char* fullname, char* shortname);
bool FindFirst (char* path, Bit16u& id);
bool FindNext (Bit16u& id, char* &result);
bool FindFirst (char* path, Bitu dtaAddress, Bitu& id);
bool FindNext (Bitu id, char* &result);
void CacheOut (const char* path, bool ignoreLastDir = false);
void AddEntry (const char* path, bool checkExist = false);
@ -121,6 +121,7 @@ public:
for (Bit32u i=0; i<fileList.size(); i++) delete fileList[i];
fileList.clear();
longNameList.clear();
compareCount = 0;
};
char orgname [CROSS_LEN];
char shortname [DOS_NAMELENGTH_ASCII];
@ -161,7 +162,7 @@ private:
CFileInfo* dirSearch [MAX_OPENDIRS];
char dirSearchName [MAX_OPENDIRS];
bool free [MAX_OPENDIRS];
CFileInfo* dirFindFirst;
CFileInfo* dirFindFirst [MAX_OPENDIRS];
char label [CROSS_LEN];
};