Skip to content

Commit

Permalink
disc2app first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
koolkdev committed Feb 11, 2017
1 parent be3169f commit 8bb0e35
Show file tree
Hide file tree
Showing 7 changed files with 871 additions and 196 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export OBJCOPY := $(PREFIX)objcopy
# SOURCES is a list of directories containing source code
# INCLUDES is a list of directories containing extra header files
#---------------------------------------------------------------------------------
TARGET := wudump
TARGET := disc2app
BUILD := build
BUILD_DBG := $(TARGET)_dbg
SOURCES := src \
Expand Down
34 changes: 34 additions & 0 deletions src/fst.h
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
Loading

0 comments on commit 8bb0e35

Please sign in to comment.