mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-11-21 21:10:02 +08:00
fix: new HashBucket (UtlTsHash) offsets and new update
This commit is contained in:
@@ -14,5 +14,5 @@ pub struct SchemaSystemTypeScope {
|
||||
pub global_scope: Pointer64<SchemaSystemTypeScope>, // 0x0108
|
||||
pad_0110: [u8; 0x3F0], // 0x0110
|
||||
pub class_bindings: UtlTsHash<SchemaClassBinding>, // 0x0500
|
||||
pub enum_bindings: UtlTsHash<SchemaEnumBinding>, // 0x2D90
|
||||
pub enum_bindings: UtlTsHash<SchemaEnumBinding>, // 0x1D90
|
||||
}
|
||||
|
||||
@@ -13,12 +13,19 @@ pub struct HashAllocatedBlob<D> {
|
||||
unsafe impl<D: 'static> Pod for HashAllocatedBlob<D> {}
|
||||
|
||||
#[repr(C)]
|
||||
pub struct HashBucket<D, K> {
|
||||
pad_0000: [u8; 0x18], // 0x0000
|
||||
pub first: Pointer64<HashFixedDataInternal<D, K>>, // 0x0018
|
||||
pub first_uncommitted: Pointer64<HashFixedDataInternal<D, K>>, // 0x0020
|
||||
pub struct RTL_SRWLOCK
|
||||
{
|
||||
pub data: Pointer64<()>,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
pub struct HashBucket<D, K> {
|
||||
pub lock: RTL_SRWLOCK, // 0x0000
|
||||
pub first: Pointer64<HashFixedDataInternal<D, K>>, // 0x0008
|
||||
pub first_uncommitted: Pointer64<HashFixedDataInternal<D, K>>, // 0x0010
|
||||
}
|
||||
|
||||
|
||||
#[repr(C)]
|
||||
pub struct HashFixedDataInternal<D, K> {
|
||||
pub ui_key: K, // 0x0000
|
||||
@@ -32,8 +39,8 @@ unsafe impl<D: 'static, K: 'static> Pod for HashFixedDataInternal<D, K> {}
|
||||
pub struct UtlTsHash<D, const C: usize = 256, K = u64> {
|
||||
pub entry_mem: UtlMemoryPoolBase, // 0x0000
|
||||
pub buckets: [HashBucket<D, K>; C], // 0x0080
|
||||
pub needs_commit: bool, // 0x2880
|
||||
pad_2881: [u8; 0xF], // 0x2881
|
||||
pub needs_commit: bool, // 0x1880
|
||||
pad_2881: [u8; 0xF], // 0x1881
|
||||
}
|
||||
|
||||
impl<D: Pod, const C: usize, K: Pod> UtlTsHash<D, C, K> {
|
||||
|
||||
Reference in New Issue
Block a user