1
0
Fork 0

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:
Peter Veenstra 2005-10-05 07:57:55 +00:00
parent d87e59032f
commit 0152783944

View file

@ -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;
}