Fix for latest game update

This commit is contained in:
a2x
2024-05-24 11:30:54 +10:00
parent dd7299729a
commit 3f6c894097
76 changed files with 31851 additions and 24923 deletions

View File

@@ -7,9 +7,9 @@ use crate::source2::UtlVector;
#[derive(Pod)]
#[repr(C)]
pub struct SchemaSystem {
pad_0000: [u8; 0x190], // 0x0000
pub type_scopes: UtlVector<Pointer64<SchemaSystemTypeScope>>, // 0x0190
pad_01a0: [u8; 0x118], // 0x01A0
pad_0000: [u8; 0x188], // 0x0000
pub type_scopes: UtlVector<Pointer64<SchemaSystemTypeScope>>, // 0x0188
pad_0198: [u8; 0x120], // 0x0198
pub num_registrations: u32, // 0x02B8
pad_02bc: [u8; 0xAC], // 0x02BC
}

View File

@@ -12,7 +12,7 @@ pub struct SchemaSystemTypeScope {
pad_0000: [u8; 0x8], // 0x0000
pub name: [c_char; 256], // 0x0008
pub global_scope: Pointer64<SchemaSystemTypeScope>, // 0x0108
pad_0110: [u8; 0x4B0], // 0x0110
pub class_bindings: UtlTsHash<Pointer64<SchemaClassBinding>>, // 0x05C0
pub enum_bindings: UtlTsHash<Pointer64<SchemaEnumBinding>>, // 0x2E50
pad_0110: [u8; 0x3F0], // 0x0110
pub class_bindings: UtlTsHash<Pointer64<SchemaClassBinding>>, // 0x0500
pub enum_bindings: UtlTsHash<Pointer64<SchemaEnumBinding>>, // 0x2D90
}

View File

@@ -5,6 +5,7 @@ use crate::error::{Error, Result};
#[repr(C)]
pub struct UtlVector<T> {
pub size: i32, // 0x0000
pad_0004: [u8; 0x4], // 0x0004
pub mem: Pointer64<[T]>, // 0x0008
}