nd-specs/patterns/db_files/chunks/LD$_.hexpat

21 lines
482 B
Plaintext
Raw Normal View History

2024-08-23 17:09:27 +00:00
#pragma once
#include "db_files/chunks/L$_.hexpat"
struct LinkData {
LinkId id;
u8 data[parent.real_data_size];
};
struct LinkDataChunk {
s32 data_size;
// I have no idea why there are these exceptions
match (parent.parent.name) {
("LD$arSrcDes"): s32 real_data_size = 108;
("LD$Receptro"): s32 real_data_size = 88;
(_): s32 real_data_size = data_size;
}
u32 max = parent.parent.data_end;
LinkData data[while($ < max)];
};