1
0
Fork 0

Add call to clear out some more fields, needed for fcb name parsing.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3938
This commit is contained in:
Peter Veenstra 2015-09-30 14:24:49 +00:00
parent b0a3ca8259
commit 39875d92da
2 changed files with 5 additions and 0 deletions

View file

@ -509,6 +509,7 @@ public:
void SetAttr(Bit8u attr);
void SetResultAttr(Bit8u attr);
bool Valid(void);
void ClearBlockRecsize(void);
private:
bool extended;
PhysPt real_pt;

View file

@ -444,6 +444,10 @@ void DOS_FCB::SetRandom(Bit32u _random) {
sSave(sFCB,rndm,_random);
}
void DOS_FCB::ClearBlockRecsize(void) {
sSave(sFCB,cur_block,0);
sSave(sFCB,rec_size,0);
}
void DOS_FCB::FileOpen(Bit8u _fhandle) {
sSave(sFCB,drive,GetDrive()+1);
sSave(sFCB,file_handle,_fhandle);