fix: schema padding

This commit is contained in:
Liam
2026-01-21 19:10:48 -05:00
parent 249cd0b80d
commit f9da77d9d4
77 changed files with 30599 additions and 91151 deletions

View File

@@ -296,7 +296,7 @@ fn read_schema_system<P: Process + MemoryView>(process: &mut P) -> Result<Schema
if !view
.scanner()
.finds_code(pattern!("488905${} 4c8d0d${} 33c0 48c705[8] 8905[4]"), &mut save)
.finds_code(pattern!("488905${'} 4c8d0d${} 33c0 48c705[8] 8905"), &mut save)
{
bail!("outdated schema system pattern");
}

View File

@@ -6,10 +6,10 @@ use crate::source2::UtlVector;
#[repr(C)]
pub struct SchemaSystem {
pad_0000: [u8; 0x188], // 0x0000
pub type_scopes: UtlVector<Pointer64<SchemaSystemTypeScope>>, // 0x0188
pad_0198: [u8; 0xE0], // 0x0198
pub num_registrations: i32, // 0x0278
pad_0000: [u8; 0x190], // 0x0000
pub type_scopes: UtlVector<Pointer64<SchemaSystemTypeScope>>, // 0x0190
pad_0198: [u8; 0xE0], // 0x01A0
pub num_registrations: i32, // 0x0280
}
unsafe impl Pod for SchemaSystem {}

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; 0x3F0], // 0x0110
pub class_bindings: UtlTsHash<SchemaClassBinding>, // 0x0500
pad_0110: [u8; 0x430], // 0x0110
pub class_bindings: UtlTsHash<SchemaClassBinding>, // 0x0540
pub enum_bindings: UtlTsHash<SchemaEnumBinding>, // 0x1D90
}