Implement GetFileAttr. Fixes Installer crystal caves.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2337
This commit is contained in:
parent
d87e59032f
commit
0152783944
1 changed files with 8 additions and 0 deletions
|
@ -225,6 +225,14 @@ bool Virtual_Drive::FindNext(DOS_DTA & dta) {
|
|||
}
|
||||
|
||||
bool Virtual_Drive::GetFileAttr(char * name,Bit16u * attr) {
|
||||
VFILE_Block * cur_file=first_file;
|
||||
while (cur_file) {
|
||||
if (strcasecmp(name,cur_file->name)==0) {
|
||||
*attr = DOS_ATTR_ARCHIVE; //Maybe readonly ?
|
||||
return true;
|
||||
}
|
||||
cur_file=cur_file->next;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue