Added support detection of directory via getfileatrribues.
Fixed Ancient Domain of Mystery Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1253
This commit is contained in:
parent
3145bf2165
commit
b051edeeba
1 changed files with 1 additions and 0 deletions
|
@ -197,6 +197,7 @@ bool localDrive::GetFileAttr(char * name,Bit16u * attr) {
|
|||
struct stat status;
|
||||
if (stat(newname,&status)==0) {
|
||||
*attr=DOS_ATTR_ARCHIVE;
|
||||
if(status.st_mode & S_IFDIR) *attr|=DOS_ATTR_DIRECTORY;
|
||||
return true;
|
||||
}
|
||||
*attr=0;
|
||||
|
|
Loading…
Add table
Reference in a new issue