diff options
| author | 2026-11-11 18:42:27 +0100 | |
|---|---|---|
| committer | 2026-11-11 18:42:27 +0100 | |
| commit | 8ba12d31be987bb0b29ea472e83e7a35fee34897 (patch) | |
| tree | 1200462466cd9a7ed095afe2f52e49c610fbd264 /src | |
| parent | 6cead6bce881ce7bcc6878852f292de8050e20e6 (diff) | |
| download | idevicerestore-8ba12d31be987bb0b29ea472e83e7a35fee34897.tar.gz idevicerestore-8ba12d31be987bb0b29ea472e83e7a35fee34897.tar.bz2 | |
Adapt magic/file checks for psi*.bin/restorepsi*.bin files to suppress warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/mbn.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -68,12 +68,13 @@ typedef struct { uint32_t unk_0x4c; // 0xFFFFFFFF } mbn_header_v2; -#define MBN_BIN_MAGIC "\x04\x00\xEA\x6C\x69\x48\x55" -#define MBN_BIN_MAGIC_SIZE 7 -#define MBN_BIN_MAGIC_OFFSET 1 // we ignore the first byte +#define MBN_BIN_MAGIC "\x6C\x69\x48\x55" +#define MBN_BIN_MAGIC_SIZE 4 +#define MBN_BIN_MAGIC_OFFSET 4 // ignore the first 4 bytes typedef struct { - unsigned char magic[8]; + uint32_t unk_0x00; + unsigned char magic[4]; uint32_t unk_0x08; uint32_t version; uint32_t total_size; // size including header |
