From 8fa0290e25ac6b6cb0ac7bd3d1d32f5eadd89e05 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Sun, 11 Dec 2022 20:49:47 +0400 Subject: [PATCH] Documentation: extensions: added page about expanded common structures --- Documentation/extensions/expanded-common-structures.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Documentation/extensions/expanded-common-structures.md diff --git a/Documentation/extensions/expanded-common-structures.md b/Documentation/extensions/expanded-common-structures.md new file mode 100644 index 00000000..4b72aedc --- /dev/null +++ b/Documentation/extensions/expanded-common-structures.md @@ -0,0 +1,8 @@ +# Expanded structures that used by engine and mods +To make porting and developing mods on 64-bit platforms less painful, we decided to expand size of several structures. +This information important in case you are using codebase like XashXT, Paranoia 2: Savior and want to compile your mod for platform with 64-bit pointer size: you should replace old definitions with new ones, otherwise your mod will not work with Xash3D FWGS (typically, it's just crashing when starting map). +| Structure name | Locates in file | Original size on 64-bit | Current size on 64-bit | +|----------------|-----------------|-------------------------|------------------------| +|`mfaceinfo_t` | `common/com_model.h` | 176 bytes | 304 bytes | +|`decal_s` | `common/com_model.h` | 72 bytes | 88 bytes | +|`mextrasurf_t` | `common/com_model.h` | 376 bytes | 504 bytes |