Skip to content

Commit

Permalink
patterns: Added MIME types and magic numbers to all patterns that hav…
Browse files Browse the repository at this point in the history
…e them
  • Loading branch information
WerWolv authored Jan 14, 2025
1 parent b936c04 commit 8db011b
Show file tree
Hide file tree
Showing 54 changed files with 103 additions and 52 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
|------|------|------|-------------|
| 3DS | | [`patterns/3ds.hexpat`](patterns/3ds.hexpat) | Autodesk 3DS Max Model file |
| 7Z | | [`patterns/7z.hexpat`](patterns/7z.hexpat) | 7z File Format |
| ADTS | | [`patterns/adts.hexpat`](patterns/adts.hexpat) | ADTS/AAC audio files |
| ADTS | `audio/x-hx-aac-adts` | [`patterns/adts.hexpat`](patterns/adts.hexpat) | ADTS/AAC audio files |
| AFE2 | | [`patterns/afe2.hexpat`](patterns/afe2.hexpat) | Nintendo Switch Atmosphère CFW Fatal Error log |
| ANI | `application/x-navi-animation` | [`patterns/ani.hexpat`](patterns/ani.hexpat) | Windows Animated Cursor file |
| AR | `application/x-archive` | [`patterns/ar.hexpat`](patterns/ar.hexpat) | Static library archive files |
Expand All @@ -41,14 +41,14 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
| BIN | | [`patterns/selinux.hexpat`](patterns/selinux.pat) | SE Linux modules |
| BINKA | | [`patterns/binka.hexpat`](patterns/binka.pat) | RAD Game Tools Bink Audio (BINKA) files |
| BSON | `application/bson` | [`patterns/bson.hexpat`](patterns/bson.hexpat) | BSON (Binary JSON) format |
| bplist | | [`patterns/bplist.hexpat`](patterns/bplist.hexpat) | Apple's binary property list format (bplist) |
| bplist | `application/x-bplist` | [`patterns/bplist.hexpat`](patterns/bplist.hexpat) | Apple's binary property list format (bplist) |
| BSP | | [`patterns/bsp_goldsrc.hexpat`](patterns/bsp_goldsrc.hexpat) | GoldSrc engine maps format (used in Half-Life 1) |
| BZIP3 | | [`patterns/bzip3.hexpat`](patterns/bzip3.hexpat) | GoldSrc engine maps format (used in Half-Life 1) |
| CCHVA | | [`patterns/cchva.hexpat`](patterns/cchva.hexpat) | Command and Conquer Voxel Animation |
| CCVXL | | [`patterns/ccvxl.hexpat`](patterns/ccvxl.hexpat) | Command and Conquer Voxel Model |
| CCPAL | | [`patterns/ccpal.hexpat`](patterns/ccpal.hexpat) | Command and Conquer Voxel Palette |
| CDA | | [`patterns/cda.hexpat`](patterns/cda.hexpat) | Compact Disc Audio track |
| CHM | | [`patterns/chm.hexpat`](patterns/chm.hexpat) | Windows HtmlHelp Data (ITSF / CHM) |
| CHM | `application/vnd.ms-htmlhelp` | [`patterns/chm.hexpat`](patterns/chm.hexpat) | Windows HtmlHelp Data (ITSF / CHM) |
| COFF | `application/x-coff` | [`patterns/coff.hexpat`](patterns/coff.hexpat) | Common Object File Format (COFF) executable |
| CPIO | `application/x-cpio` | [`patterns/cpio.hexpat`](patterns/cpio.hexpat) | Old Binary CPIO Format |
| CrashLvl | | [`patterns/Crashlvl.hexpat`](patterns/Crashlvl.hexpat) | Crash Bandicoot - Back in Time (fan game) User created level format |
Expand All @@ -64,13 +64,13 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
| DTA | | [`patterns/max_v104.hexpat`](patterns/max_v104.hexpat) | Mechanized Assault and Exploration v1.04 (strategy game) save file format |
| DTED | | [`patterns/dted.hexpat`](patterns/dted.hexpat) | Digital Terrain Elevation Data (DTED) |
| ELF | `application/x-executable` | [`patterns/elf.hexpat`](patterns/elf.hexpat) | ELF header in elf binaries |
| EVTX | | [`patterns/evtx.hexpat`](patterns/evtx.hexpat) | MS Windows Vista Event Log |
| EVTX | `application/x-ms-evtx` | [`patterns/evtx.hexpat`](patterns/evtx.hexpat) | MS Windows Vista Event Log |
| EXT4 | | [`patterns/ext4.hexpat`](patterns/ext4.hexpat) | Ext4 filesystem |
| FAS | | [`patterns/fas_oskasoftware.hexpat`](patterns/fas_oskasoftware.hexpat) [`patterns/fas_oskasoftware_old.hexpat`](patterns/fas_oskasoftware_old.hexpat) (Old versions of Oska DeskMate) | Oska Software DeskMates FAS (Frames and Sequences) file |
| FBX | | [`patterns/fbx.hexpat`](patterns/fbx.hexpat) | Kaydara FBX Binary |
| FDT | | [`patterns/fdt.hexpat`](patterns/fdt.hexpat) | Flat Linux Device Tree blob |
| FFX | | [`patterns/ffx/*`](https://gitlab.com/EvelynTSMG/imhex-ffx-pats) | Various Final Fantasy X files |
| File System | | [`patterns/fs.hexpat`](patterns/fs.hexpat) | Drive File System |
| File System | `application/x-ima` | [`patterns/fs.hexpat`](patterns/fs.hexpat) | Drive File System |
| FLAC | `audio/flac` | [`patterns/flac.hexpat`](patterns/flac.hexpat) | Free Lossless Audio Codec, FLAC Audio Format |
| Flipper Zero Settings | | [`patterns/flipper_settings.hexpat`](patterns/flipper_settings.hexpat) | Flipper Zero Settings Files |
| GB | `application/x-gameboy-rom` | [`patterns/gb.hexpat`](patterns/gb.hexpat) | Game Boy ROM |
Expand All @@ -88,7 +88,7 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
| Intel HEX | | [`patterns/intel_hex.hexpat`](patterns/intel_hex.hexpat) | [Intel hexadecimal object file format definition]("https://en.wikipedia.org/wiki/Intel_HEX") |
| IP | | [`patterns/ip.hexpat`](patterns/ip.hexpat) | Ethernet II Frames (IP Packets) |
| IPS | | [`patterns/ips.hexpat`](patterns/ips.hexpat) | IPS (International Patching System) files |
| ISO | | [`patterns/iso.hexpat`](patterns/iso.hexpat) | ISO 9660 file system |
| ISO | `application/x-iso9660-image` | [`patterns/iso.hexpat`](patterns/iso.hexpat) | ISO 9660 file system |
| Java Class | `application/x-java-applet` | [`patterns/java_class.hexpat`](patterns/java_class.hexpat) | Java Class files |
| JPEG | `image/jpeg` | [`patterns/jpeg.hexpat`](patterns/jpeg.hexpat) | JPEG Image Format |
| LOC | | [`patterns/loc.hexpat`](patterns/loc.hexpat) | Minecraft Legacy Console Edition Language file |
Expand All @@ -106,8 +106,8 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
| MSSCMP | | [`patterns/msscmp.hexpat`](patterns/msscmp.hexpat) | Miles Sound System Compressed Archive |
| NACP | | [`patterns/nacp.hexpat`](patterns/nacp.hexpat) | Nintendo Switch NACP files |
| NBT | | [`patterns/nbt.hexpat`](patterns/nbt.hexpat) | Minecraft NBT format |
| NE | | [`patterns/ne.hexpat`](patterns/ne.hexpat) | NE header and Standard NE fields |
| nes | | [`patterns/nes.hexpat`](patterns/nes.hexpat) | .nes file format |
| NE | `application/x-ms-ne-executable` | [`patterns/ne.hexpat`](patterns/ne.hexpat) | NE header and Standard NE fields |
| nes | | [`patterns/nes.hexpat`](patterns/nes.hexpat) | .nes file format |
| NotepadCache | | [`patterns/notepad-cache.hexpat`](patterns/notepad-cache.hexpat) | Windows Notepad Cache |
| NotepadWindowState | | [`patterns/notepadwindowstate.hexpat`](patterns/notepadwindowstate.hexpat) | Windows 11 Notepad - Window State .bin file |
| NRO | | [`patterns/nro.hexpat`](patterns/nro.hexpat) | Nintendo Switch NRO files |
Expand All @@ -117,8 +117,8 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
| PCAP | `application/vnd.tcpdump.pcap` | [`patterns/pcap.hexpat`](patterns/pcap.hexpat) | pcap header and packets |
| PCK | | [`patterns/pck.hexpat`](patterns/pck.hexpat) | Minecraft Legacy Console Edition .pck file |
| PCX | `application/x-pcx` | [`patterns/pcx.hexpat`](patterns/pcx.hexpat) | PCX Image format |
| PE | `application/x-dosexec` `application/x-msdownload` | [`patterns/pe.hexpat`](patterns/pe.hexpat) | PE header, COFF header, Standard COFF fields and Windows Specific fields |
| PP | | [`patterns/selinuxpp.hexpat`](patterns/selinuxpp.pat) | SE Linux package |
| PE | `application/x-dosexec` `application/x-msdownload` | [`patterns/pe.hexpat`](patterns/pe.hexpat) | PE header, COFF header, Standard COFF fields and Windows Specific fields |
| PP | | [`patterns/selinuxpp.hexpat`](patterns/selinuxpp.pat) | SE Linux package |
| PFS0 | | [`patterns/pfs0.hexpat`](patterns/pfs0.hexpat) | Nintendo Switch PFS0 archive (NSP files) |
| PIF | `image/pif` | [`patterns/pif.hexpat`](patterns/pif.hexpat) | PIF Image Format |
| PKM | | [`patterns/pkm.hexpat`](patterns/pkm.hexpat) | PKM texture format |
Expand All @@ -127,12 +127,12 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
| Protobuf | | [`patterns/protobuf.hexpat`](patterns/protobuf.hexpat) | Google Protobuf encoding |
| psafe3 | | [`patterns/psafe3.hexpat`](patterns/psafe3.hexpat`) | Password Safe V3 |
| PyInstaller | | [`patterns/pyinstaller.hexpat`](patterns/pyinstaller.hexpat) | PyInstaller binray files |
| PYC | | [`patterns/pyc.hexpat`](patterns/pyc.hexpat) | Python bytecode files |
| PYC | `application/x-bytecode.python` | [`patterns/pyc.hexpat`](patterns/pyc.hexpat) | Python bytecode files |
| QBCL | | [`patterns/qbcl.hexpat`](patterns/qbcl.hexpat) | Qubicle voxel scene project file |
| QOI | `image/qoi` | [`patterns/qoi.hexpat`](patterns/qoi.hexpat) | QOI image files |
| QOI | `image/qoi` | [`patterns/qoi.hexpat`](patterns/qoi.hexpat) | QOI image files |
| quantized-mesh | | [`patterns/quantized-mesh.hexpat`](patterns/quantized-mesh.hexpat) | Cesium quantized-mesh terrain |
| RAR | `application/x-rar` | [`patterns/rar.hexpat`](patterns/rar.hexpat) | RAR archive file format |
| RAS | `image/x-sun-raster` | [`patterns/ras.hexpat`](patterns/ras.hexpat) | RAS image files |
| RAS | `image/x-sun-raster` | [`patterns/ras.hexpat`](patterns/ras.hexpat) | RAS image files |
| ReFS | | [`patterns/refs.hexpat`](patterns/refs.hexpat) | Microsoft Resilient File System |
| RGBDS | | [`patterns/rgbds.hexpat`](patterns/rgbds.hexpat) | [RGBDS](https://rgbds.gbdev.io) object file format |
| Shell Link | `application/x-ms-shortcut` | [`patterns/lnk.hexpat`](patterns/lnk.hexpat) | Windows Shell Link file format |
Expand All @@ -143,7 +143,7 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
| STL | `model/stl` | [`patterns/stl.hexpat`](patterns/stl.hexpat) | STL 3D Model format |
| StuffItV5 | `application/x-stuffit` | [`patterns/sit5.hexpat`](patterns/sit5.hexpat) | StuffIt V5 archive |
| SQLite3 | `application/vnd.sqlite3` | [`patterns/sqlite3.hexpat`](patterns/sqlite3.hexpat) | SQLite3 Database |
| SWF | |[`patterns/swf.hexpat`](patterns/swf.hexpat) | Shockwave Flash file format |
| SWF | `application/x-shockwave-flash` |[`patterns/swf.hexpat`](patterns/swf.hexpat) | Shockwave Flash file format |
| TAR | `application/x-tar` | [`patterns/tar.hexpat`](patterns/tar.hexpat) | Tar file format |
| TES | | [`patterns/wintec_tes.hexpat`](patterns/wintec_tes.hexpat) | Wintec TES GPS log |
| TIFF | `image/tiff` | [`patterns/tiff.hexpat`](patterns/tiff.hexpat) | Tag Image File Format |
Expand All @@ -166,7 +166,7 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
| XCI | | [`patterns/xci.hexpat`](patterns/xci.hexpat) | Nintendo Switch XCI cartridge ROM |
| XGT | | [`patterns/xgt.hexpat`](patterns/xgstexture.hexpat) | Exient XGS Engine Texture |
| Xilinx BIT | | [`patterns/xilinx_bit.hexpat`](patterns/xilinx_bit.hexpat) | Xilinx FPGA Bitstreams |
| Xilinx Bootgen | | [`patterns/xilinx_bootgen.hexpat`](patterns/xilinx_bootgen.hexpat) | Xilinx ZynqMP Boot Images |
| Xilinx Bootgen | `application/x-xilinx-boot-zynqmp` | [`patterns/xilinx_bootgen.hexpat`](patterns/xilinx_bootgen.hexpat) | Xilinx ZynqMP Boot Images |
| ZIP | `application/zip` | [`patterns/zip.hexpat`](patterns/zip.hexpat) | End of Central Directory Header, Central Directory File Headers |
| ZLIB | `application/zlib` | [`patterns/zlib.hexpat`](patterns/zlib.hexpat) | ZLIB compressed data format |
| ZSTD | `application/zstd` | [`patterns/zstd.hexpat`](patterns/zstd.hexpat) | Zstandard compressed data format |
Expand Down
1 change: 1 addition & 0 deletions patterns/Crashlvl.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author AdventureT
#pragma description Crash Bandicoot - Back in Time (fan game) User created level
#pragma magic [ 43 52 41 53 48 4C 56 4C ] @ 0x00
#pragma history
#pragma 0.3 2024-05-15 Added support for version 0.95
#pragma 0.2 2023-10-29 Added support for version 0.94c
Expand Down
2 changes: 1 addition & 1 deletion patterns/adts.hexpat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma author zhoubo
#pragma description AAC ADTSn (Audio Data Transport Stream) Audio
#pragma magic [ FF F? ] @ 0x00
#pragma MIME audio/x-hx-aac-adts
#pragma pattern_limit 0xFFFFFF

// History
Expand Down
4 changes: 4 additions & 0 deletions patterns/afe2.hexpat
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#pragma author WerWolv
#pragma description Nintendo Switch Atmosphère CFW Fatal Error log

#pramga magic [ 41 46 45 30 ] @ 0x00
#pramga magic [ 41 46 45 31 ] @ 0x00
#pramga magic [ 41 46 45 32 ] @ 0x00

#pragma endian little

import std.io;
Expand Down
1 change: 1 addition & 0 deletions patterns/bgcode.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author Shadlock0133 (aka Aurora) / WerWolv
#pragma description Prusa Binary G-Code
#pragma magic [ 47 43 44 45 ] @ 0x00

import type.magic;
import std.mem;
Expand Down
1 change: 1 addition & 0 deletions patterns/bplist.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description Apple binary property list
#pragma MIME application/x-bplist

import std.math;
import std.core;
Expand Down
38 changes: 19 additions & 19 deletions patterns/cda.hexpat
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
#pragma description Compact Disc Audio track
#pragma magic [ 52 49 46 46 ] @ 0x00

struct Header {
u32 RIFF;
s32 size;
u32 CDDA;
u32 fmt;
u32 lenghtofthechunck;
u16 versionofcdformat;
u16 numberofrange;
u32 identifier;
u32 RIFF;
s32 size;
u32 CDDA;
u32 fmt;
u32 lenghtofthechunck;
u16 versionofcdformat;
u16 numberofrange;
u32 identifier;
};


struct DataInfo {

u32 range;
u32 duration;
u8 rangepositionframes;
u8 rangepositionseconds;
u8 rangepositionminutes;
u8 nullbyte;
u8 durationtrackframes;
u8 durationtrackseconds;
u8 durationtrackminutes;
u8 nullbytee;
u32 range;
u32 duration;
u8 rangepositionframes;
u8 rangepositionseconds;
u8 rangepositionminutes;
u8 nullbyte;
u8 durationtrackframes;
u8 durationtrackseconds;
u8 durationtrackminutes;
u8 nullbytee;
};


Expand Down
1 change: 1 addition & 0 deletions patterns/chm.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author WerWolv
#pragma description Windows HtmlHelp Data (ITSF / CHM)
#pragma MIME application/vnd.ms-htmlhelp

import type.magic;
import type.size;
Expand Down
1 change: 1 addition & 0 deletions patterns/dex.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description Dalvik EXecutable
#pragma magic [ 64 65 78 0A ?? ?? ?? 00 ]

import type.leb128;

Expand Down
1 change: 1 addition & 0 deletions patterns/dmg.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description Apple Disk Image Trailer (DMG)
#pragma magic [ 6B 6F 6C 79 ] @ -512

#pragma endian big

Expand Down
4 changes: 2 additions & 2 deletions patterns/dmp64.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma magic [50 41 47 45] // PAGE
#pragma magic [ 50 41 47 45 ] @ 0x00 // PAGE
#pragma author "5h4rrK"
#pragma description "KERNEL DUMP"

Expand Down Expand Up @@ -99,4 +99,4 @@ struct DUMP_HEADER64 {

};

DUMP_HEADER64 dmp @0x00 [[name("DumpHeader")]];
DUMP_HEADER64 dmp @ 0x00 [[name("DumpHeader")]];
1 change: 1 addition & 0 deletions patterns/dsstore.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description macOS .DS_Store
#pragma magic [ 42 75 64 31 ] @ 0x04

// Apple macOS .DS_Store format
#pragma endian big
Expand Down
2 changes: 2 additions & 0 deletions patterns/dted.hexpat
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#pragma description Digital Terrain Elevation Data
#pragma endian big

#pragma magic [ 4C 48 55 ] @ 0x00

import std.core;
import std.io;
import std.mem;
Expand Down
2 changes: 1 addition & 1 deletion patterns/evtx.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma description MS Windows Vista Event Log

#pragma MIME application/x-ms-evtx
#pragma endian little

struct Header {
Expand Down
1 change: 1 addition & 0 deletions patterns/fdt.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author WerWolv
#pragma description Flat Linux Device Tree blob
#pragma magic [ D0 0D FE ED ] @ 0x00

#pragma endian big

Expand Down
1 change: 1 addition & 0 deletions patterns/flac.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author WerWolv
#pragma description Free Lossless Audio Codec, FLAC Audio Format
#pragma MIME audio/flac

import std.sys;
import std.core;
Expand Down
1 change: 1 addition & 0 deletions patterns/fs.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author WerWolv
#pragma description Drive File System
#pragma MIME application/x-ima

import std.io;
import std.core;
Expand Down
1 change: 1 addition & 0 deletions patterns/hinf_luas.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author Surasia
#pragma description Halo Infinite HavokScript 5.1 "luas"
#pragma magic [ 75 63 73 68 ] @ 0x00

import std.io;
import std.mem;
Expand Down
5 changes: 3 additions & 2 deletions patterns/hinf_module.hexpat
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma author Surasia
#pragma description Halo Infinite Module
#pragma array_limit 4294967295
#pragma pattern_limit 4294967295
#pragma array_limit 0
#pragma pattern_limit 0
#pragma magic [ 6D 6F 68 64 ] @ 0x00

import std.string;

Expand Down
1 change: 1 addition & 0 deletions patterns/hinf_tag.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author Surasia
#pragma description Halo Infinite Tag
#pragma magic [ 75 63 73 68 ] @ 0x00

import std.string;
import type.guid;
Expand Down
4 changes: 3 additions & 1 deletion patterns/hsdt.hexpat
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
#pragma author xtex

#pragma description HiSilicon HSDT device-tree table
#pragma endian little
#pragma magic [ 48 53 44 54 ] @ 0x00

import std.sys;
import std.mem;
#pragma endian little

u32 dt_hdr_offset;
if (std::mem::read_unsigned(4096, 4, std::mem::Endian::Little) == 0x54445348) {
Expand Down
1 change: 1 addition & 0 deletions patterns/intel_hex.hexpat
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* values
*/
#pragma endian big
#pragma MIME text/x-hex

import std.mem;

Expand Down
1 change: 1 addition & 0 deletions patterns/ips.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author gmestanley
#pragma description IPS (International Patching System)
#pragma magic [ 50 41 54 43 48 ] @ 0x00

#pragma endian big

Expand Down
1 change: 1 addition & 0 deletions patterns/iso.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description ISO 9660 file system
#pragma MIME application/x-iso9660-image

#pragma endian little

Expand Down
4 changes: 2 additions & 2 deletions patterns/loc.hexpat
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#pragma description Minecraft LCE LOC file

#pragma endian big
#pragma array_limit 739845729834
#pragma pattern_limit 34893726894
#pragma array_limit 0
#pragma pattern_limit 0

import std.string;

Expand Down
1 change: 1 addition & 0 deletions patterns/lua51.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description Lua 5.1 bytecode
#pragma magic [ 1B 4C 75 61 51 ] @ 0x00

import std.io;

Expand Down
1 change: 1 addition & 0 deletions patterns/lua52.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description Lua 5.2 bytecode
#pragma magic [ 1B 4C 75 61 52 ] @ 0x00

import std.io;
import std.mem;
Expand Down
1 change: 1 addition & 0 deletions patterns/lua53.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description Lua 5.3 bytecode
#pragma magic [ 1B 4C 75 61 53 ] @ 0x00

import std.io;
import type.base;
Expand Down
1 change: 1 addition & 0 deletions patterns/lua54.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description Lua 5.4 bytecode
#pragma magic [ 1B 4C 75 61 54 ] @ 0x00

import std.io;
import std.mem;
Expand Down
4 changes: 2 additions & 2 deletions patterns/max_v104.hexpat
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import std.sys;
import std.mem;

#pragma array_limit 12544
#pragma pattern_limit 2000000
#pragma array_limit 0
#pragma pattern_limit 0
#pragma eval_depth 32

enum FileType : u8
Expand Down
4 changes: 2 additions & 2 deletions patterns/msscmp.hexpat
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#pragma description MSSCMP (Miles Sound System Compressed Archive)
#pragma magic [ 42 41 4E 4B ] @ 0x00
#pragma magic [ 4B 4E 41 42 ] @ 0x00
#pragma array_limit 4294967295
#pragma pattern_limit 4294967295
#pragma array_limit 0
#pragma pattern_limit 0

import type.magic;
import std.core;
Expand Down
1 change: 1 addition & 0 deletions patterns/ne.hexpat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma description Microsoft DOS NE executable
#pragma MIME application/x-ms-ne-executable

import std.mem;

Expand Down
1 change: 1 addition & 0 deletions patterns/nes.hexpat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma author gmestanley
#pragma description Nintendo Entertainment System ROM (.nes)
#pragma MIME application/x-nes-rom

import std.mem;
import std.string;
Expand Down
Loading

0 comments on commit 8db011b

Please sign in to comment.