forked from FIX94/wudump
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
871 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
#ifndef _FST_H_ | ||
#define _FST_H_ | ||
|
||
typedef struct _FEntry | ||
{ | ||
union | ||
{ | ||
struct | ||
{ | ||
uint32_t Type :8; | ||
uint32_t NameOffset :24; | ||
}; | ||
uint32_t TypeName; | ||
}; | ||
union | ||
{ | ||
struct // File Entry | ||
{ | ||
uint32_t FileOffset; | ||
uint32_t FileLength; | ||
}; | ||
struct // Dir Entry | ||
{ | ||
uint32_t ParentOffset; | ||
uint32_t NextOffset; | ||
}; | ||
uint32_t entry[2]; | ||
}; | ||
uint16_t Flags; | ||
uint16_t ContentID; | ||
} __attribute__ ((gcc_struct, __packed__)) FEntry; | ||
|
||
#endif |
Oops, something went wrong.