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:
parent
b0a3ca8259
commit
39875d92da
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue