From 50385d3c0508394c707c5f76caa8c43493e5b035 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Thu, 13 Feb 2003 23:32:00 +0000 Subject: [PATCH] Added custom DTA member dirID for multiple findfirst/findnext functionality. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@663 --- include/dos_inc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/dos_inc.h b/include/dos_inc.h index ba1c6561..575bb79c 100644 --- a/include/dos_inc.h +++ b/include/dos_inc.h @@ -354,6 +354,9 @@ public: Bit8u GetSearchDrive(void); void GetSearchParams(Bit8u & _sattr,char * _spattern); void GetResult(char * _name,Bit32u & _size,Bit16u & _date,Bit16u & _time,Bit8u & _attr); + + void SetDirID(Bit16u entry) { sSave(sDTA,dirID,entry); }; + Bit16u GetDirID(void) { return sGet(sDTA,dirID); }; private: #pragma pack(1) struct sDTA { @@ -361,7 +364,8 @@ private: Bit8u sattr; /* The Attributes that need to be found */ Bit8u sname[8]; /* The Search pattern for the filename */ Bit8u sext[3]; /* The Search pattern for the extenstion */ - Bit8u fill[8]; + Bit16u dirID; /* custom: dir-search ID for multiple searches at the same time */ + Bit8u fill[6]; Bit8u attr; Bit16u time; Bit16u date;