summaryrefslogtreecommitdiff
path: root/patterns/winmodern_physstore.pat
diff options
context:
space:
mode:
authorWitherOrNot2025-02-13 23:52:21 +0000
committerGitHub2025-02-13 23:52:21 +0000
commitce01862459c73609e1a25666af6dc6aa74aec3df (patch)
tree91816667a7d66a64606ff59af493529df67e4e1d /patterns/winmodern_physstore.pat
parent37aa13893674045b2d05bd8a42a96842090e6689 (diff)
downloadspp-stuff-ce01862459c73609e1a25666af6dc6aa74aec3df.zip
Add files via upload
Diffstat (limited to 'patterns/winmodern_physstore.pat')
-rw-r--r--patterns/winmodern_physstore.pat29
1 files changed, 29 insertions, 0 deletions
diff --git a/patterns/winmodern_physstore.pat b/patterns/winmodern_physstore.pat
new file mode 100644
index 0000000..96cb595
--- /dev/null
+++ b/patterns/winmodern_physstore.pat
@@ -0,0 +1,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; \ No newline at end of file