diff options
author | germeier <germeier> | 2003-07-01 09:06:11 +0000 |
---|---|---|
committer | germeier <germeier> | 2003-07-01 09:06:11 +0000 |
commit | 53a51993489a4d519fd54a01167f804325661ded (patch) | |
tree | 4cbbddf5c3fbf03c47df3deb5c3e90d04a109c59 /libmpio/src | |
parent | b5f5847bedf884611a9978236bb66d150016c71e (diff) | |
download | mpiosh-53a51993489a4d519fd54a01167f804325661ded.tar.gz mpiosh-53a51993489a4d519fd54a01167f804325661ded.tar.bz2 mpiosh-53a51993489a4d519fd54a01167f804325661ded.zip |
return/display file type/tag for files from internal memory
(as requested by Markus)
Diffstat (limited to 'libmpio/src')
-rw-r--r-- | libmpio/src/directory.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmpio/src/directory.c b/libmpio/src/directory.c index 394e193..c907941 100644 --- a/libmpio/src/directory.c +++ b/libmpio/src/directory.c @@ -1,5 +1,5 @@ /* - * $Id: directory.c,v 1.6 2003/06/26 19:53:58 germeier Exp $ + * $Id: directory.c,v 1.7 2003/07/01 09:06:11 germeier Exp $ * * libmpio - a library for accessing Digit@lways MPIO players * Copyright (C) 2002, 2003 Markus Germeier @@ -690,6 +690,7 @@ mpio_dentry_get_real(mpio_t *m, mpio_mem_t mem, BYTE *buffer, int slots = 0; int in = 0, out = 0, iconv_return; mpio_dir_entry_t *dentry; + mpio_fatentry_t *f; mpio_dir_slot_t *slot; BYTE *unicode = 0; BYTE *uc; @@ -801,6 +802,10 @@ mpio_dentry_get_real(mpio_t *m, mpio_mem_t mem, BYTE *buffer, *type = FTYPE_DIR; } else { *type = FTYPE_PLAIN; + if (mem == MPIO_INTERNAL_MEM) { + f = mpio_dentry_get_startcluster(m, mem, buffer); + *type = m->internal.fat[f->entry * 0x10 + 0x06]; + } } return(((BYTE *)dentry) - buffer); |