mirror of
https://github.com/a2x/cs2-dumper.git
synced 2026-03-07 17:57:22 +08:00
fix: schema padding
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user