feat: QOS (007: Quantum of Solace) support (#894)

* feat: QOS (007: Quantum of Solace) support

* feat: add qos localize loader

* feat: add qos stringtable loader

* chore: comment about official zones

* fix: add qos gfximage runtime fields

* chore: remove useless dev time comments

* fix: remove all `static_asserts`s from asset headers causing build fail on x64

* chore: change union ordering of qos `entryInternalData`

* chore: move qos asset type enum to qos.h

* fix: qos and t4 xsurface index buffer

* chore: implement qos MaterialInfo struct

* chore: adjust some gfxworld struct members

* chore: implement qos PhysPreset and PhysConstraints

* chore: fix and adjust slight inconsistencies with qos zone code

* chore: reorder qos ZoneCode.lua entries in order of asset type enum

* chore: remove asset types that are not actual asset types in zones

* chore: check common asset arrays with static_assert

* chore: rename qos assets

* chore: reorder qos in templates to be in alphabetical order

* chore: use function for CopyMipLevel in Dx9TextureLoader

* chore: use templates for qos MapEntsDumper

* chore: add missing braces in XModelToCommonConverter

* chore: add generic way to peek at zone data

* Qos does not use a classic ZoneHeader so code needs to be more generic

* fix: do not use raw_byte and raw_uint typedefs for qos

* fix: not being able to write clipmapmp

* chore: additional research on qos vertex property and stuff

---------

Co-authored-by: Jan Laupetin <[email protected]>
This commit is contained in:
mo
2026-08-05 00:32:23 +02:00
committed by GitHub
co-authored by Jan Laupetin
parent 5c0a7257fd
commit 9f49e0e31c
142 changed files with 6000 additions and 97 deletions
+25 -2
View File
@@ -448,8 +448,8 @@ namespace T4
void /*IDirect3DVertexBuffer9*/* vb0;
unsigned int vertListCount;
XRigidVertList* vertList;
int partBits[4];
void /*IDirect3DIndexBuffer9*/* indexBuffer;
int partBits[4];
};
struct XModelLodInfo
@@ -1356,10 +1356,33 @@ namespace T4
unsigned char dest;
};
enum MaterialVertexDeclType
{
VERTDECL_GENERIC = 0x0,
VERTDECL_PACKED = 0x1,
VERTDECL_WORLD = 0x2,
VERTDECL_3 = 0x3,
VERTDECL_4 = 0x4,
VERTDECL_5 = 0x5,
VERTDECL_6 = 0x6,
VERTDECL_7 = 0x7,
VERTDECL_8 = 0x8,
VERTDECL_9 = 0x9,
VERTDECL_A = 0xA,
VERTDECL_B = 0xB,
VERTDECL_C = 0xC,
VERTDECL_D = 0xD,
VERTDECL_E = 0xE,
VERTDECL_F = 0xF,
VERTDECL_10 = 0x10,
VERTDECL_COUNT
};
struct MaterialVertexStreamRouting
{
MaterialStreamRouting data[16];
void /*IDirect3DVertexDeclaration9*/* decl[17];
void /*IDirect3DVertexDeclaration9*/* decl[VERTDECL_COUNT];
};
struct MaterialVertexDeclaration