enable hidden-flag to be returned by getattrib (cdrom images only; fixes Player Manager 2 extra cdrom check)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2890
This commit is contained in:
parent
3d1ac8d7f0
commit
7d2d97e148
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: drive_iso.cpp,v 1.19 2007-06-13 07:25:14 qbix79 Exp $ */
|
||||
/* $Id: drive_iso.cpp,v 1.20 2007-06-15 19:05:48 c2woody Exp $ */
|
||||
|
||||
#include <cctype>
|
||||
#include <cstring>
|
||||
|
@ -348,6 +348,7 @@ bool isoDrive::GetFileAttr(char *name, Bit16u *attr)
|
|||
bool success = lookup(&de, name);
|
||||
if (success) {
|
||||
*attr = DOS_ATTR_ARCHIVE | DOS_ATTR_READ_ONLY;
|
||||
if (IS_HIDDEN(de.fileFlags)) *attr |= DOS_ATTR_HIDDEN;
|
||||
if (IS_DIR(de.fileFlags)) *attr |= DOS_ATTR_DIRECTORY;
|
||||
}
|
||||
return success;
|
||||
|
|
Loading…
Add table
Reference in a new issue