#ifdef MEDIA338_S20E_X30J_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J_SU1E_AU1E_AU2E_AU2F_AU2G_AU3E
#ifndef FTL_H
#define FTL_H

typedef struct { /* Size 20 = $14 */
        unsigned int16_t Magic; /* 0x6160 */
        unsigned int16_t Checksum;
        unsigned int16_t Unknown1; /* FTL loaded only if value is 0x0002 */
        unsigned char c_6; /* FTL loaded only if value is 0x01 */
        unsigned char c_7; /* FTL loaded only if value is 0x00 */
        unsigned int16_t i_8;  /* Always 0x0007. Unreferenced */
        unsigned char c_0a;  /* Always 0x00. Unreferenced */
        unsigned char c_0b;  /* Always 0x01. Unreferenced */
        unsigned char c_0c;  /* Always 0x04. Unreferenced */
        unsigned char c_0d;  /* Always 0x01. Unreferenced */ /* c_0c & c_0d are set to the same value in F7174_GetInitializedFTLHeader */
        unsigned int16_t Date1; /* Date1 & Date2 are set to the same value in F7174_GetInitializedFTLHeader */
        unsigned int16_t Date2; /* Date format: Bits 0-4: Day - 1, Bits 5-8: Month - 1, Bits 9-15: Year - 1980. These dates correspond to file dates in file system (to be confirmed for all FTL files) */
        unsigned int16_t SegmentCount;
} HEADER;

typedef struct { /* Size 12 = $C Each segment is identified by a type and index */
        unsigned int16_t Type;
        unsigned int16_t Id; /* If multiple segments have the same type they must have unique Id values */
        unsigned long Offset;
        unsigned long Size;
} SEGMENTHEADER;

#endif
#endif
