summaryrefslogtreecommitdiff
path: root/patterns/variablebag.pat
diff options
context:
space:
mode:
authorWitherOrNot2025-02-13 23:52:21 +0000
committerGitHub2025-02-13 23:52:21 +0000
commitce01862459c73609e1a25666af6dc6aa74aec3df (patch)
tree91816667a7d66a64606ff59af493529df67e4e1d /patterns/variablebag.pat
parent37aa13893674045b2d05bd8a42a96842090e6689 (diff)
downloadspp-stuff-ce01862459c73609e1a25666af6dc6aa74aec3df.zip
Add files via upload
Diffstat (limited to 'patterns/variablebag.pat')
-rw-r--r--patterns/variablebag.pat14
1 files changed, 14 insertions, 0 deletions
diff --git a/patterns/variablebag.pat b/patterns/variablebag.pat
new file mode 100644
index 0000000..440f8a0
--- /dev/null
+++ b/patterns/variablebag.pat
@@ -0,0 +1,14 @@
+#include <std/mem.pat>
+
+struct varbag_entry {
+ u32 crc32;
+ u32 unk1;
+ u32 len_name;
+ u32 len_val;
+ char16 name[len_name/2];
+ padding[-$&7];
+ u8 value[len_val];
+ padding[-$&7];
+};
+
+varbag_entry entries[while($ < std::mem::size())] @ 0x0; \ No newline at end of file