Skip to content

Commit

Permalink
I have no idea what I'm doing
Browse files Browse the repository at this point in the history
  • Loading branch information
viciious committed Jun 25, 2024
1 parent ec869a4 commit bc06c32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ void GS_Start(void)
flags = (uint8_t)*buf;
buf += 1;

if (flags & 2) // flags -- directory
// if a directory, then bit 1 is 1, bits 2,3 and 7 are zero
// see 9.1.6 at https://pismotec.com/cfs/iso9660-1999.html
if ((flags & 0x8E) == 0x2)
continue;

if (namelen >= (int)sizeof(mi->name))
Expand Down

0 comments on commit bc06c32

Please sign in to comment.