summaryrefslogtreecommitdiff
path: root/patterns/winmodern_physstore.pat
blob: 96cb595f095b02a8d9a3ab114027690506dce1bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
struct tsd_header {
    u32 len_name;
    char16 name[len_name/2];
    u32 num_entries;
    padding[-$&3];
};

struct tsd_data {
    u32 unk1;
    u32 unk2;
    u32 len_name;
    u32 len_val;
    u32 unk3;
    char16 name[len_name/2];
    u8 value[len_val];
    padding[-$&3];
};

struct tsentry {
    tsd_header header;
    tsd_data data[header.num_entries];
};

struct data_store {
    u32 num_entries;
    tsentry entries[num_entries];
};

data_store store @ 0x8;