1
0
Fork 0

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:
Peter Veenstra 2003-09-19 15:06:06 +00:00
parent 3145bf2165
commit b051edeeba

View file

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