From b051edeeba516f10329437394310183a522b3228 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 19 Sep 2003 15:06:06 +0000 Subject: [PATCH] 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 --- src/dos/drive_local.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dos/drive_local.cpp b/src/dos/drive_local.cpp index 8c0c119e..4abace09 100644 --- a/src/dos/drive_local.cpp +++ b/src/dos/drive_local.cpp @@ -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;