diff --git a/patterns/afe2.hexpat b/patterns/afe2.hexpat index 80b882c..4f403ae 100644 --- a/patterns/afe2.hexpat +++ b/patterns/afe2.hexpat @@ -1,5 +1,7 @@ #pragma endian little +#include + #define ATMOSPHERE_REBOOT_TO_FATAL_MAGIC "AFE2" #define ATMOSPHERE_REBOOT_TO_FATAL_MAGIC_1 "AFE1" #define ATMOSPHERE_REBOOT_TO_FATAL_MAGIC_0 "AFE0" diff --git a/patterns/ar.hexpat b/patterns/ar.hexpat index 840b59c..f3ae55f 100644 --- a/patterns/ar.hexpat +++ b/patterns/ar.hexpat @@ -1,5 +1,9 @@ #pragma MIME application/x-archive +#include +#include +#include + struct ARFile { char file_name[16]; char modification_timestamp[12]; diff --git a/patterns/arm_cm_vtor.hexpat b/patterns/arm_cm_vtor.hexpat index 523db3f..5c0b959 100644 --- a/patterns/arm_cm_vtor.hexpat +++ b/patterns/arm_cm_vtor.hexpat @@ -1,5 +1,8 @@ #pragma endian little +#include +#include + #define VTOR 0x00000000 #define EXTERNAL_INTERRUPT_COUNT 64 diff --git a/patterns/ico.hexpat b/patterns/ico.hexpat index 9843739..286aa28 100644 --- a/patterns/ico.hexpat +++ b/patterns/ico.hexpat @@ -1,5 +1,7 @@ #pragma endian little +#include + #pragma MIME image/vnd.microsoft.icon #pragma MIME image/x-icon #pragma MIME image/icon diff --git a/patterns/java_class.hexpat b/patterns/java_class.hexpat index 5b6cee9..5f0f4d5 100644 --- a/patterns/java_class.hexpat +++ b/patterns/java_class.hexpat @@ -1,6 +1,9 @@ #pragma endian big #pragma MIME application/x-java-applet +#include +#include + // The Java documentations use the number of bytes instead of the number of bits for its type names using u1 = u8; using u2 = u16; diff --git a/patterns/nacp.hexpat b/patterns/nacp.hexpat index 9a23eb8..e09b20f 100644 --- a/patterns/nacp.hexpat +++ b/patterns/nacp.hexpat @@ -1,5 +1,8 @@ #pragma endian little +#include +#include + struct ApplicationTitle { char name[0x200]; char publisher[0x100]; diff --git a/patterns/nro.hexpat b/patterns/nro.hexpat index 4ce2b79..40218b2 100644 --- a/patterns/nro.hexpat +++ b/patterns/nro.hexpat @@ -1,3 +1,6 @@ +#include +#include + struct MOD0 { char magic[4]; u32 dynamic_offset [[name(".dynamic offset")]]; diff --git a/patterns/zip.hexpat b/patterns/zip.hexpat index ae9bc70..bf1ebc4 100644 --- a/patterns/zip.hexpat +++ b/patterns/zip.hexpat @@ -1,5 +1,7 @@ #pragma MIME application/zip +#include + struct EndOfCentralDirectory{ u32 headerSignature [[color("00000000")]]; u16 diskNum [[comment("Number of this disk "), name("Disk Number")]];