From 4944a3a6301b5e5f8ef7195433b8999667f61f25 Mon Sep 17 00:00:00 2001 From: a2x <45197573+a2x@users.noreply.github.com> Date: Sun, 7 Apr 2024 18:23:52 +1000 Subject: [PATCH] Avoid generating files for empty modules --- output/animationsystem.dll.cs | 2 +- output/animationsystem.dll.hpp | 2 +- output/animationsystem.dll.rs | 2 +- output/buttons.cs | 2 +- output/buttons.hpp | 2 +- output/buttons.rs | 2 +- output/client.dll.cs | 18 ++++----- output/client.dll.hpp | 18 ++++----- output/client.dll.rs | 18 ++++----- output/engine2.dll.cs | 2 +- output/engine2.dll.hpp | 2 +- output/engine2.dll.rs | 2 +- output/host.dll.cs | 2 +- output/host.dll.hpp | 2 +- output/host.dll.rs | 2 +- output/info.json | 2 +- output/interfaces.cs | 2 +- output/interfaces.hpp | 2 +- output/interfaces.rs | 2 +- output/materialsystem2.dll.cs | 2 +- output/materialsystem2.dll.hpp | 2 +- output/materialsystem2.dll.rs | 2 +- output/meshsystem.dll.cs | 5 --- output/meshsystem.dll.hpp | 11 ------ output/meshsystem.dll.json | 6 --- output/meshsystem.dll.rs | 9 ----- output/networksystem.dll.cs | 2 +- output/networksystem.dll.hpp | 2 +- output/networksystem.dll.rs | 2 +- output/offsets.cs | 2 +- output/offsets.hpp | 2 +- output/offsets.rs | 2 +- output/panorama.dll.cs | 2 +- output/panorama.dll.hpp | 2 +- output/panorama.dll.rs | 2 +- output/particles.dll.cs | 2 +- output/particles.dll.hpp | 2 +- output/particles.dll.rs | 2 +- output/pulse_system.dll.cs | 2 +- output/pulse_system.dll.hpp | 2 +- output/pulse_system.dll.rs | 2 +- output/rendersystemdx11.dll.cs | 2 +- output/rendersystemdx11.dll.hpp | 2 +- output/rendersystemdx11.dll.rs | 2 +- output/resourcesystem.dll.cs | 2 +- output/resourcesystem.dll.hpp | 2 +- output/resourcesystem.dll.rs | 2 +- output/scenefilecache.dll.cs | 5 --- output/scenefilecache.dll.hpp | 11 ------ output/scenefilecache.dll.json | 6 --- output/scenefilecache.dll.rs | 9 ----- output/scenesystem.dll.cs | 2 +- output/scenesystem.dll.hpp | 2 +- output/scenesystem.dll.rs | 2 +- output/schemasystem.dll.cs | 2 +- output/schemasystem.dll.hpp | 2 +- output/schemasystem.dll.rs | 2 +- output/server.dll.cs | 10 ++--- output/server.dll.hpp | 10 ++--- output/server.dll.rs | 10 ++--- output/soundsystem.dll.cs | 2 +- output/soundsystem.dll.hpp | 2 +- output/soundsystem.dll.rs | 2 +- output/vphysics2.dll.cs | 2 +- output/vphysics2.dll.hpp | 2 +- output/vphysics2.dll.rs | 2 +- output/worldrenderer.dll.cs | 2 +- output/worldrenderer.dll.hpp | 2 +- output/worldrenderer.dll.rs | 2 +- src/analysis/schemas.rs | 70 +++++++++++++++++---------------- src/output/mod.rs | 4 +- src/output/schemas.rs | 15 ------- 72 files changed, 136 insertions(+), 209 deletions(-) delete mode 100644 output/meshsystem.dll.cs delete mode 100644 output/meshsystem.dll.hpp delete mode 100644 output/meshsystem.dll.json delete mode 100644 output/meshsystem.dll.rs delete mode 100644 output/scenefilecache.dll.cs delete mode 100644 output/scenefilecache.dll.hpp delete mode 100644 output/scenefilecache.dll.json delete mode 100644 output/scenefilecache.dll.rs diff --git a/output/animationsystem.dll.cs b/output/animationsystem.dll.cs index 6aecaf1..21171e8 100644 --- a/output/animationsystem.dll.cs +++ b/output/animationsystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: animationsystem.dll diff --git a/output/animationsystem.dll.hpp b/output/animationsystem.dll.hpp index d33be88..7e35b04 100644 --- a/output/animationsystem.dll.hpp +++ b/output/animationsystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/animationsystem.dll.rs b/output/animationsystem.dll.rs index dff9279..0d2e473 100644 --- a/output/animationsystem.dll.rs +++ b/output/animationsystem.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/buttons.cs b/output/buttons.cs index c3479ab..69c38cb 100644 --- a/output/buttons.cs +++ b/output/buttons.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper { // Module: client.dll diff --git a/output/buttons.hpp b/output/buttons.hpp index 6f629ce..f2f2803 100644 --- a/output/buttons.hpp +++ b/output/buttons.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/buttons.rs b/output/buttons.rs index f9d8d4d..76d8379 100644 --- a/output/buttons.rs +++ b/output/buttons.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, unused)] diff --git a/output/client.dll.cs b/output/client.dll.cs index 0df7018..cbb513f 100644 --- a/output/client.dll.cs +++ b/output/client.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: client.dll @@ -732,7 +732,7 @@ namespace CS2Dumper.Schemas { public const nint m_flOldPlayerZ = 0x138; // float32 public const nint m_flOldPlayerViewOffsetZ = 0x13C; // float32 public const nint m_CurrentFog = 0x140; // fogparams_t - public const nint m_hOldFogController = 0x1A8; // CHandle + public const nint m_hOldFogController = 0x1A8; // public const nint m_bOverrideFogColor = 0x1AC; // bool[5] public const nint m_OverrideFogColor = 0x1B1; // Color[5] public const nint m_bOverrideFogStartEnd = 0x1C5; // bool[5] @@ -910,8 +910,8 @@ namespace CS2Dumper.Schemas { // NetworkVarNames: m_hostageRescueZ (int) // NetworkVarNames: m_bEndMatchNextMapAllVoted (bool) public static class C_CSPlayerResource { - public const nint m_bHostageAlive = 0x550; // bool[12] - public const nint m_isHostageFollowingSomeone = 0x55C; // bool[12] + public const nint m_bHostageAlive = 0x550; // + public const nint m_isHostageFollowingSomeone = 0x55C; // public const nint m_iHostageEntityIDs = 0x568; // CEntityIndex[12] public const nint m_bombsiteCenterA = 0x598; // public const nint m_bombsiteCenterB = 0x5A4; // @@ -1936,7 +1936,7 @@ namespace CS2Dumper.Schemas { // Metadata: // NetworkVarNames: m_hCtrl (CHandle) public static class C_fogplayerparams_t { - public const nint m_hCtrl = 0x8; // CHandle + public const nint m_hCtrl = 0x8; // public const nint m_flTransitionTime = 0xC; // float32 public const nint m_OldColor = 0x10; // Color public const nint m_flOldStart = 0x14; // float32 @@ -4245,8 +4245,8 @@ namespace CS2Dumper.Schemas { // NetworkVarNames: m_iAmmo (uint16) public static class CPlayer_WeaponServices { public const nint m_hMyWeapons = 0x40; // C_NetworkUtlVectorBase> - public const nint m_hActiveWeapon = 0x58; // - public const nint m_hLastWeapon = 0x5C; // + public const nint m_hActiveWeapon = 0x58; // CHandle + public const nint m_hLastWeapon = 0x5C; // CHandle public const nint m_iAmmo = 0x60; // uint16[32] } // Parent: None @@ -4526,7 +4526,7 @@ namespace CS2Dumper.Schemas { // NetworkVarNames: m_weaponPurchasesThisMatch (WeaponPurchaseTracker_t) // NetworkVarNames: m_weaponPurchasesThisRound (WeaponPurchaseTracker_t) public static class CCSPlayer_ActionTrackingServices { - public const nint m_hLastWeaponBeforeC4AutoSwitch = 0x40; // + public const nint m_hLastWeaponBeforeC4AutoSwitch = 0x40; // CHandle public const nint m_bIsRescuing = 0x44; // bool public const nint m_weaponPurchasesThisMatch = 0x48; // WeaponPurchaseTracker_t public const nint m_weaponPurchasesThisRound = 0xA0; // WeaponPurchaseTracker_t @@ -6302,7 +6302,7 @@ namespace CS2Dumper.Schemas { public const nint m_nViewModelIndex = 0xEEC; // uint32 public const nint m_nAnimationParity = 0xEF0; // uint32 public const nint m_flAnimationStartTime = 0xEF4; // float32 - public const nint m_hWeapon = 0xEF8; // + public const nint m_hWeapon = 0xEF8; // CHandle public const nint m_sVMName = 0xF00; // CUtlSymbolLarge public const nint m_sAnimationPrefix = 0xF08; // CUtlSymbolLarge public const nint m_hWeaponModel = 0xF10; // CHandle diff --git a/output/client.dll.hpp b/output/client.dll.hpp index ed8bb7e..18b9b87 100644 --- a/output/client.dll.hpp +++ b/output/client.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once @@ -737,7 +737,7 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_flOldPlayerZ = 0x138; // float32 constexpr std::ptrdiff_t m_flOldPlayerViewOffsetZ = 0x13C; // float32 constexpr std::ptrdiff_t m_CurrentFog = 0x140; // fogparams_t - constexpr std::ptrdiff_t m_hOldFogController = 0x1A8; // CHandle + constexpr std::ptrdiff_t m_hOldFogController = 0x1A8; // constexpr std::ptrdiff_t m_bOverrideFogColor = 0x1AC; // bool[5] constexpr std::ptrdiff_t m_OverrideFogColor = 0x1B1; // Color[5] constexpr std::ptrdiff_t m_bOverrideFogStartEnd = 0x1C5; // bool[5] @@ -915,8 +915,8 @@ namespace cs2_dumper { // NetworkVarNames: m_hostageRescueZ (int) // NetworkVarNames: m_bEndMatchNextMapAllVoted (bool) namespace C_CSPlayerResource { - constexpr std::ptrdiff_t m_bHostageAlive = 0x550; // bool[12] - constexpr std::ptrdiff_t m_isHostageFollowingSomeone = 0x55C; // bool[12] + constexpr std::ptrdiff_t m_bHostageAlive = 0x550; // + constexpr std::ptrdiff_t m_isHostageFollowingSomeone = 0x55C; // constexpr std::ptrdiff_t m_iHostageEntityIDs = 0x568; // CEntityIndex[12] constexpr std::ptrdiff_t m_bombsiteCenterA = 0x598; // constexpr std::ptrdiff_t m_bombsiteCenterB = 0x5A4; // @@ -1941,7 +1941,7 @@ namespace cs2_dumper { // Metadata: // NetworkVarNames: m_hCtrl (CHandle) namespace C_fogplayerparams_t { - constexpr std::ptrdiff_t m_hCtrl = 0x8; // CHandle + constexpr std::ptrdiff_t m_hCtrl = 0x8; // constexpr std::ptrdiff_t m_flTransitionTime = 0xC; // float32 constexpr std::ptrdiff_t m_OldColor = 0x10; // Color constexpr std::ptrdiff_t m_flOldStart = 0x14; // float32 @@ -4250,8 +4250,8 @@ namespace cs2_dumper { // NetworkVarNames: m_iAmmo (uint16) namespace CPlayer_WeaponServices { constexpr std::ptrdiff_t m_hMyWeapons = 0x40; // C_NetworkUtlVectorBase> - constexpr std::ptrdiff_t m_hActiveWeapon = 0x58; // - constexpr std::ptrdiff_t m_hLastWeapon = 0x5C; // + constexpr std::ptrdiff_t m_hActiveWeapon = 0x58; // CHandle + constexpr std::ptrdiff_t m_hLastWeapon = 0x5C; // CHandle constexpr std::ptrdiff_t m_iAmmo = 0x60; // uint16[32] } // Parent: None @@ -4531,7 +4531,7 @@ namespace cs2_dumper { // NetworkVarNames: m_weaponPurchasesThisMatch (WeaponPurchaseTracker_t) // NetworkVarNames: m_weaponPurchasesThisRound (WeaponPurchaseTracker_t) namespace CCSPlayer_ActionTrackingServices { - constexpr std::ptrdiff_t m_hLastWeaponBeforeC4AutoSwitch = 0x40; // + constexpr std::ptrdiff_t m_hLastWeaponBeforeC4AutoSwitch = 0x40; // CHandle constexpr std::ptrdiff_t m_bIsRescuing = 0x44; // bool constexpr std::ptrdiff_t m_weaponPurchasesThisMatch = 0x48; // WeaponPurchaseTracker_t constexpr std::ptrdiff_t m_weaponPurchasesThisRound = 0xA0; // WeaponPurchaseTracker_t @@ -6307,7 +6307,7 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_nViewModelIndex = 0xEEC; // uint32 constexpr std::ptrdiff_t m_nAnimationParity = 0xEF0; // uint32 constexpr std::ptrdiff_t m_flAnimationStartTime = 0xEF4; // float32 - constexpr std::ptrdiff_t m_hWeapon = 0xEF8; // + constexpr std::ptrdiff_t m_hWeapon = 0xEF8; // CHandle constexpr std::ptrdiff_t m_sVMName = 0xF00; // CUtlSymbolLarge constexpr std::ptrdiff_t m_sAnimationPrefix = 0xF08; // CUtlSymbolLarge constexpr std::ptrdiff_t m_hWeaponModel = 0xF10; // CHandle diff --git a/output/client.dll.rs b/output/client.dll.rs index 4b88208..64aee93 100644 --- a/output/client.dll.rs +++ b/output/client.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] @@ -742,7 +742,7 @@ pub mod cs2_dumper { pub const m_flOldPlayerZ: usize = 0x138; // float32 pub const m_flOldPlayerViewOffsetZ: usize = 0x13C; // float32 pub const m_CurrentFog: usize = 0x140; // fogparams_t - pub const m_hOldFogController: usize = 0x1A8; // CHandle + pub const m_hOldFogController: usize = 0x1A8; // pub const m_bOverrideFogColor: usize = 0x1AC; // bool[5] pub const m_OverrideFogColor: usize = 0x1B1; // Color[5] pub const m_bOverrideFogStartEnd: usize = 0x1C5; // bool[5] @@ -920,8 +920,8 @@ pub mod cs2_dumper { // NetworkVarNames: m_hostageRescueZ (int) // NetworkVarNames: m_bEndMatchNextMapAllVoted (bool) pub mod C_CSPlayerResource { - pub const m_bHostageAlive: usize = 0x550; // bool[12] - pub const m_isHostageFollowingSomeone: usize = 0x55C; // bool[12] + pub const m_bHostageAlive: usize = 0x550; // + pub const m_isHostageFollowingSomeone: usize = 0x55C; // pub const m_iHostageEntityIDs: usize = 0x568; // CEntityIndex[12] pub const m_bombsiteCenterA: usize = 0x598; // pub const m_bombsiteCenterB: usize = 0x5A4; // @@ -1946,7 +1946,7 @@ pub mod cs2_dumper { // Metadata: // NetworkVarNames: m_hCtrl (CHandle) pub mod C_fogplayerparams_t { - pub const m_hCtrl: usize = 0x8; // CHandle + pub const m_hCtrl: usize = 0x8; // pub const m_flTransitionTime: usize = 0xC; // float32 pub const m_OldColor: usize = 0x10; // Color pub const m_flOldStart: usize = 0x14; // float32 @@ -4255,8 +4255,8 @@ pub mod cs2_dumper { // NetworkVarNames: m_iAmmo (uint16) pub mod CPlayer_WeaponServices { pub const m_hMyWeapons: usize = 0x40; // C_NetworkUtlVectorBase> - pub const m_hActiveWeapon: usize = 0x58; // - pub const m_hLastWeapon: usize = 0x5C; // + pub const m_hActiveWeapon: usize = 0x58; // CHandle + pub const m_hLastWeapon: usize = 0x5C; // CHandle pub const m_iAmmo: usize = 0x60; // uint16[32] } // Parent: None @@ -4536,7 +4536,7 @@ pub mod cs2_dumper { // NetworkVarNames: m_weaponPurchasesThisMatch (WeaponPurchaseTracker_t) // NetworkVarNames: m_weaponPurchasesThisRound (WeaponPurchaseTracker_t) pub mod CCSPlayer_ActionTrackingServices { - pub const m_hLastWeaponBeforeC4AutoSwitch: usize = 0x40; // + pub const m_hLastWeaponBeforeC4AutoSwitch: usize = 0x40; // CHandle pub const m_bIsRescuing: usize = 0x44; // bool pub const m_weaponPurchasesThisMatch: usize = 0x48; // WeaponPurchaseTracker_t pub const m_weaponPurchasesThisRound: usize = 0xA0; // WeaponPurchaseTracker_t @@ -6312,7 +6312,7 @@ pub mod cs2_dumper { pub const m_nViewModelIndex: usize = 0xEEC; // uint32 pub const m_nAnimationParity: usize = 0xEF0; // uint32 pub const m_flAnimationStartTime: usize = 0xEF4; // float32 - pub const m_hWeapon: usize = 0xEF8; // + pub const m_hWeapon: usize = 0xEF8; // CHandle pub const m_sVMName: usize = 0xF00; // CUtlSymbolLarge pub const m_sAnimationPrefix: usize = 0xF08; // CUtlSymbolLarge pub const m_hWeaponModel: usize = 0xF10; // CHandle diff --git a/output/engine2.dll.cs b/output/engine2.dll.cs index d3e3b26..2ff521d 100644 --- a/output/engine2.dll.cs +++ b/output/engine2.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: engine2.dll diff --git a/output/engine2.dll.hpp b/output/engine2.dll.hpp index e5df50d..4354b07 100644 --- a/output/engine2.dll.hpp +++ b/output/engine2.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/engine2.dll.rs b/output/engine2.dll.rs index 98e54cc..4a0aa06 100644 --- a/output/engine2.dll.rs +++ b/output/engine2.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/host.dll.cs b/output/host.dll.cs index bfdc6a0..92726e7 100644 --- a/output/host.dll.cs +++ b/output/host.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: host.dll diff --git a/output/host.dll.hpp b/output/host.dll.hpp index 7ac1482..2685558 100644 --- a/output/host.dll.hpp +++ b/output/host.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/host.dll.rs b/output/host.dll.rs index d8f5569..895dfef 100644 --- a/output/host.dll.rs +++ b/output/host.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/info.json b/output/info.json index 0d9e3c3..79bc95e 100644 --- a/output/info.json +++ b/output/info.json @@ -1,4 +1,4 @@ { "build_number": 14001, - "timestamp": "2024-04-07T05:30:39.851724900+00:00" + "timestamp": "2024-04-07T08:19:03.265339800+00:00" } \ No newline at end of file diff --git a/output/interfaces.cs b/output/interfaces.cs index 80661a7..7049ddd 100644 --- a/output/interfaces.cs +++ b/output/interfaces.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Interfaces { // Module: animationsystem.dll diff --git a/output/interfaces.hpp b/output/interfaces.hpp index 98b9696..801d868 100644 --- a/output/interfaces.hpp +++ b/output/interfaces.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/interfaces.rs b/output/interfaces.rs index 71c23a7..4a5c206 100644 --- a/output/interfaces.rs +++ b/output/interfaces.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, unused)] diff --git a/output/materialsystem2.dll.cs b/output/materialsystem2.dll.cs index 487e40d..b739d4a 100644 --- a/output/materialsystem2.dll.cs +++ b/output/materialsystem2.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: materialsystem2.dll diff --git a/output/materialsystem2.dll.hpp b/output/materialsystem2.dll.hpp index 3d8814d..6bb694e 100644 --- a/output/materialsystem2.dll.hpp +++ b/output/materialsystem2.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/materialsystem2.dll.rs b/output/materialsystem2.dll.rs index 54fa5ea..4da82b0 100644 --- a/output/materialsystem2.dll.rs +++ b/output/materialsystem2.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/meshsystem.dll.cs b/output/meshsystem.dll.cs deleted file mode 100644 index 1e6a33e..0000000 --- a/output/meshsystem.dll.cs +++ /dev/null @@ -1,5 +0,0 @@ -// Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC - -namespace CS2Dumper.Schemas { -} diff --git a/output/meshsystem.dll.hpp b/output/meshsystem.dll.hpp deleted file mode 100644 index a7083fa..0000000 --- a/output/meshsystem.dll.hpp +++ /dev/null @@ -1,11 +0,0 @@ -// Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC - -#pragma once - -#include - -namespace cs2_dumper { - namespace schemas { - } -} diff --git a/output/meshsystem.dll.json b/output/meshsystem.dll.json deleted file mode 100644 index a8849f7..0000000 --- a/output/meshsystem.dll.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "meshsystem.dll": { - "classes": {}, - "enums": {} - } -} \ No newline at end of file diff --git a/output/meshsystem.dll.rs b/output/meshsystem.dll.rs deleted file mode 100644 index 06466e0..0000000 --- a/output/meshsystem.dll.rs +++ /dev/null @@ -1,9 +0,0 @@ -// Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC - -#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] - -pub mod cs2_dumper { - pub mod schemas { - } -} diff --git a/output/networksystem.dll.cs b/output/networksystem.dll.cs index dfeda85..64f45d8 100644 --- a/output/networksystem.dll.cs +++ b/output/networksystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: networksystem.dll diff --git a/output/networksystem.dll.hpp b/output/networksystem.dll.hpp index 1f75054..76db71b 100644 --- a/output/networksystem.dll.hpp +++ b/output/networksystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/networksystem.dll.rs b/output/networksystem.dll.rs index 52a220b..7c33d23 100644 --- a/output/networksystem.dll.rs +++ b/output/networksystem.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/offsets.cs b/output/offsets.cs index 714be57..b1e6533 100644 --- a/output/offsets.cs +++ b/output/offsets.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Offsets { // Module: client.dll diff --git a/output/offsets.hpp b/output/offsets.hpp index b915529..c7dd159 100644 --- a/output/offsets.hpp +++ b/output/offsets.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/offsets.rs b/output/offsets.rs index 3ab0651..4611eed 100644 --- a/output/offsets.rs +++ b/output/offsets.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, unused)] diff --git a/output/panorama.dll.cs b/output/panorama.dll.cs index 6471a3b..4e8f405 100644 --- a/output/panorama.dll.cs +++ b/output/panorama.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: panorama.dll diff --git a/output/panorama.dll.hpp b/output/panorama.dll.hpp index 34d8230..abe1206 100644 --- a/output/panorama.dll.hpp +++ b/output/panorama.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/panorama.dll.rs b/output/panorama.dll.rs index 11aa0c0..776f01e 100644 --- a/output/panorama.dll.rs +++ b/output/panorama.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/particles.dll.cs b/output/particles.dll.cs index b976573..d8fbdd8 100644 --- a/output/particles.dll.cs +++ b/output/particles.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: particles.dll diff --git a/output/particles.dll.hpp b/output/particles.dll.hpp index b90b8f2..828865b 100644 --- a/output/particles.dll.hpp +++ b/output/particles.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/particles.dll.rs b/output/particles.dll.rs index 56ffb3b..6c5306c 100644 --- a/output/particles.dll.rs +++ b/output/particles.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/pulse_system.dll.cs b/output/pulse_system.dll.cs index c52096c..efd58e6 100644 --- a/output/pulse_system.dll.cs +++ b/output/pulse_system.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: pulse_system.dll diff --git a/output/pulse_system.dll.hpp b/output/pulse_system.dll.hpp index d6d2978..d2eac85 100644 --- a/output/pulse_system.dll.hpp +++ b/output/pulse_system.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/pulse_system.dll.rs b/output/pulse_system.dll.rs index e60f551..587c2b0 100644 --- a/output/pulse_system.dll.rs +++ b/output/pulse_system.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/rendersystemdx11.dll.cs b/output/rendersystemdx11.dll.cs index b374a33..d312ebe 100644 --- a/output/rendersystemdx11.dll.cs +++ b/output/rendersystemdx11.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: rendersystemdx11.dll diff --git a/output/rendersystemdx11.dll.hpp b/output/rendersystemdx11.dll.hpp index 46818a9..0618682 100644 --- a/output/rendersystemdx11.dll.hpp +++ b/output/rendersystemdx11.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/rendersystemdx11.dll.rs b/output/rendersystemdx11.dll.rs index bd73486..79ec660 100644 --- a/output/rendersystemdx11.dll.rs +++ b/output/rendersystemdx11.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/resourcesystem.dll.cs b/output/resourcesystem.dll.cs index db6663e..ad84a1a 100644 --- a/output/resourcesystem.dll.cs +++ b/output/resourcesystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: resourcesystem.dll diff --git a/output/resourcesystem.dll.hpp b/output/resourcesystem.dll.hpp index 38f8e83..9ac5dc0 100644 --- a/output/resourcesystem.dll.hpp +++ b/output/resourcesystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/resourcesystem.dll.rs b/output/resourcesystem.dll.rs index 8123516..a543b26 100644 --- a/output/resourcesystem.dll.rs +++ b/output/resourcesystem.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/scenefilecache.dll.cs b/output/scenefilecache.dll.cs deleted file mode 100644 index 1e6a33e..0000000 --- a/output/scenefilecache.dll.cs +++ /dev/null @@ -1,5 +0,0 @@ -// Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC - -namespace CS2Dumper.Schemas { -} diff --git a/output/scenefilecache.dll.hpp b/output/scenefilecache.dll.hpp deleted file mode 100644 index a7083fa..0000000 --- a/output/scenefilecache.dll.hpp +++ /dev/null @@ -1,11 +0,0 @@ -// Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC - -#pragma once - -#include - -namespace cs2_dumper { - namespace schemas { - } -} diff --git a/output/scenefilecache.dll.json b/output/scenefilecache.dll.json deleted file mode 100644 index 637f1ef..0000000 --- a/output/scenefilecache.dll.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "scenefilecache.dll": { - "classes": {}, - "enums": {} - } -} \ No newline at end of file diff --git a/output/scenefilecache.dll.rs b/output/scenefilecache.dll.rs deleted file mode 100644 index 06466e0..0000000 --- a/output/scenefilecache.dll.rs +++ /dev/null @@ -1,9 +0,0 @@ -// Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC - -#![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] - -pub mod cs2_dumper { - pub mod schemas { - } -} diff --git a/output/scenesystem.dll.cs b/output/scenesystem.dll.cs index 7aafa1d..e61c564 100644 --- a/output/scenesystem.dll.cs +++ b/output/scenesystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: scenesystem.dll diff --git a/output/scenesystem.dll.hpp b/output/scenesystem.dll.hpp index 9d75bf8..e8580bb 100644 --- a/output/scenesystem.dll.hpp +++ b/output/scenesystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/scenesystem.dll.rs b/output/scenesystem.dll.rs index ce251ba..ea8e6aa 100644 --- a/output/scenesystem.dll.rs +++ b/output/scenesystem.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/schemasystem.dll.cs b/output/schemasystem.dll.cs index aedb8dd..b374b84 100644 --- a/output/schemasystem.dll.cs +++ b/output/schemasystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: schemasystem.dll diff --git a/output/schemasystem.dll.hpp b/output/schemasystem.dll.hpp index 23bb997..5b70c5d 100644 --- a/output/schemasystem.dll.hpp +++ b/output/schemasystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/schemasystem.dll.rs b/output/schemasystem.dll.rs index 5d21963..c9e762e 100644 --- a/output/schemasystem.dll.rs +++ b/output/schemasystem.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/server.dll.cs b/output/server.dll.cs index 53c37bf..dc8b634 100644 --- a/output/server.dll.cs +++ b/output/server.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: server.dll @@ -2588,7 +2588,7 @@ namespace CS2Dumper.Schemas { public const nint m_vecBackBoundsMin = 0xE64; // public const nint m_vecBackBoundsMax = 0xE70; // public const nint m_bAjarDoorShouldntAlwaysOpen = 0xE7C; // bool - public const nint m_hEntityBlocker = 0xE80; // CHandle + public const nint m_hEntityBlocker = 0xE80; // } // Parent: CBaseModelEntity // Fields count: 21 @@ -3005,7 +3005,7 @@ namespace CS2Dumper.Schemas { public const nint m_numCloseAttempts = 0xC48; // int32 public const nint m_nPhysicsMaterial = 0xC4C; // CUtlStringToken public const nint m_SlaveName = 0xC50; // CUtlSymbolLarge - public const nint m_hMaster = 0xC58; // + public const nint m_hMaster = 0xC58; // CHandle public const nint m_OnBlockedClosing = 0xC60; // CEntityIOOutput public const nint m_OnBlockedOpening = 0xC88; // CEntityIOOutput public const nint m_OnUnblockedClosing = 0xCB0; // CEntityIOOutput @@ -6769,8 +6769,8 @@ namespace CS2Dumper.Schemas { // NetworkVarNames: m_hostageRescueZ (int) // NetworkVarNames: m_bEndMatchNextMapAllVoted (bool) public static class CCSPlayerResource { - public const nint m_bHostageAlive = 0x4C0; // bool[12] - public const nint m_isHostageFollowingSomeone = 0x4CC; // bool[12] + public const nint m_bHostageAlive = 0x4C0; // + public const nint m_isHostageFollowingSomeone = 0x4CC; // public const nint m_iHostageEntityIDs = 0x4D8; // CEntityIndex[12] public const nint m_bombsiteCenterA = 0x508; // public const nint m_bombsiteCenterB = 0x514; // diff --git a/output/server.dll.hpp b/output/server.dll.hpp index accf237..90bef43 100644 --- a/output/server.dll.hpp +++ b/output/server.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once @@ -2593,7 +2593,7 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_vecBackBoundsMin = 0xE64; // constexpr std::ptrdiff_t m_vecBackBoundsMax = 0xE70; // constexpr std::ptrdiff_t m_bAjarDoorShouldntAlwaysOpen = 0xE7C; // bool - constexpr std::ptrdiff_t m_hEntityBlocker = 0xE80; // CHandle + constexpr std::ptrdiff_t m_hEntityBlocker = 0xE80; // } // Parent: CBaseModelEntity // Fields count: 21 @@ -3010,7 +3010,7 @@ namespace cs2_dumper { constexpr std::ptrdiff_t m_numCloseAttempts = 0xC48; // int32 constexpr std::ptrdiff_t m_nPhysicsMaterial = 0xC4C; // CUtlStringToken constexpr std::ptrdiff_t m_SlaveName = 0xC50; // CUtlSymbolLarge - constexpr std::ptrdiff_t m_hMaster = 0xC58; // + constexpr std::ptrdiff_t m_hMaster = 0xC58; // CHandle constexpr std::ptrdiff_t m_OnBlockedClosing = 0xC60; // CEntityIOOutput constexpr std::ptrdiff_t m_OnBlockedOpening = 0xC88; // CEntityIOOutput constexpr std::ptrdiff_t m_OnUnblockedClosing = 0xCB0; // CEntityIOOutput @@ -6774,8 +6774,8 @@ namespace cs2_dumper { // NetworkVarNames: m_hostageRescueZ (int) // NetworkVarNames: m_bEndMatchNextMapAllVoted (bool) namespace CCSPlayerResource { - constexpr std::ptrdiff_t m_bHostageAlive = 0x4C0; // bool[12] - constexpr std::ptrdiff_t m_isHostageFollowingSomeone = 0x4CC; // bool[12] + constexpr std::ptrdiff_t m_bHostageAlive = 0x4C0; // + constexpr std::ptrdiff_t m_isHostageFollowingSomeone = 0x4CC; // constexpr std::ptrdiff_t m_iHostageEntityIDs = 0x4D8; // CEntityIndex[12] constexpr std::ptrdiff_t m_bombsiteCenterA = 0x508; // constexpr std::ptrdiff_t m_bombsiteCenterB = 0x514; // diff --git a/output/server.dll.rs b/output/server.dll.rs index 9036de9..8ae8431 100644 --- a/output/server.dll.rs +++ b/output/server.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] @@ -2717,7 +2717,7 @@ pub mod cs2_dumper { pub const m_vecBackBoundsMin: usize = 0xE64; // pub const m_vecBackBoundsMax: usize = 0xE70; // pub const m_bAjarDoorShouldntAlwaysOpen: usize = 0xE7C; // bool - pub const m_hEntityBlocker: usize = 0xE80; // CHandle + pub const m_hEntityBlocker: usize = 0xE80; // } // Parent: CBaseModelEntity // Fields count: 21 @@ -3134,7 +3134,7 @@ pub mod cs2_dumper { pub const m_numCloseAttempts: usize = 0xC48; // int32 pub const m_nPhysicsMaterial: usize = 0xC4C; // CUtlStringToken pub const m_SlaveName: usize = 0xC50; // CUtlSymbolLarge - pub const m_hMaster: usize = 0xC58; // + pub const m_hMaster: usize = 0xC58; // CHandle pub const m_OnBlockedClosing: usize = 0xC60; // CEntityIOOutput pub const m_OnBlockedOpening: usize = 0xC88; // CEntityIOOutput pub const m_OnUnblockedClosing: usize = 0xCB0; // CEntityIOOutput @@ -6898,8 +6898,8 @@ pub mod cs2_dumper { // NetworkVarNames: m_hostageRescueZ (int) // NetworkVarNames: m_bEndMatchNextMapAllVoted (bool) pub mod CCSPlayerResource { - pub const m_bHostageAlive: usize = 0x4C0; // bool[12] - pub const m_isHostageFollowingSomeone: usize = 0x4CC; // bool[12] + pub const m_bHostageAlive: usize = 0x4C0; // + pub const m_isHostageFollowingSomeone: usize = 0x4CC; // pub const m_iHostageEntityIDs: usize = 0x4D8; // CEntityIndex[12] pub const m_bombsiteCenterA: usize = 0x508; // pub const m_bombsiteCenterB: usize = 0x514; // diff --git a/output/soundsystem.dll.cs b/output/soundsystem.dll.cs index 46c52c0..eada683 100644 --- a/output/soundsystem.dll.cs +++ b/output/soundsystem.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: soundsystem.dll diff --git a/output/soundsystem.dll.hpp b/output/soundsystem.dll.hpp index a5e5869..197502a 100644 --- a/output/soundsystem.dll.hpp +++ b/output/soundsystem.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/soundsystem.dll.rs b/output/soundsystem.dll.rs index 44b3a2f..4048c52 100644 --- a/output/soundsystem.dll.rs +++ b/output/soundsystem.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/vphysics2.dll.cs b/output/vphysics2.dll.cs index ad4a502..123ac6c 100644 --- a/output/vphysics2.dll.cs +++ b/output/vphysics2.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: vphysics2.dll diff --git a/output/vphysics2.dll.hpp b/output/vphysics2.dll.hpp index 5588086..429cf62 100644 --- a/output/vphysics2.dll.hpp +++ b/output/vphysics2.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/vphysics2.dll.rs b/output/vphysics2.dll.rs index 26663c4..b256b30 100644 --- a/output/vphysics2.dll.rs +++ b/output/vphysics2.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/output/worldrenderer.dll.cs b/output/worldrenderer.dll.cs index c31141b..9318988 100644 --- a/output/worldrenderer.dll.cs +++ b/output/worldrenderer.dll.cs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC namespace CS2Dumper.Schemas { // Module: worldrenderer.dll diff --git a/output/worldrenderer.dll.hpp b/output/worldrenderer.dll.hpp index 804fd5e..94af4e9 100644 --- a/output/worldrenderer.dll.hpp +++ b/output/worldrenderer.dll.hpp @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #pragma once diff --git a/output/worldrenderer.dll.rs b/output/worldrenderer.dll.rs index 306a354..8eae803 100644 --- a/output/worldrenderer.dll.rs +++ b/output/worldrenderer.dll.rs @@ -1,5 +1,5 @@ // Generated using https://github.com/a2x/cs2-dumper -// 2024-04-07 05:30:39.851724900 UTC +// 2024-04-07 08:19:03.265339800 UTC #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)] diff --git a/src/analysis/schemas.rs b/src/analysis/schemas.rs index e6c7ebe..33a2ef2 100644 --- a/src/analysis/schemas.rs +++ b/src/analysis/schemas.rs @@ -266,42 +266,46 @@ fn read_type_scopes( ) -> Result> { let type_scopes = &schema_system.type_scopes; - (0..type_scopes.size) - .map(|i| { - let type_scope_ptr = type_scopes.element(process, i as _)?; - let type_scope = type_scope_ptr.read(process)?; + (0..type_scopes.size).try_fold(Vec::new(), |mut acc, i| { + let type_scope_ptr = type_scopes.element(process, i as _)?; + let type_scope = type_scope_ptr.read(process)?; - let module_name = unsafe { CStr::from_ptr(type_scope.name.as_ptr()) } - .to_string_lossy() - .to_string(); + let module_name = unsafe { CStr::from_ptr(type_scope.name.as_ptr()) } + .to_string_lossy() + .to_string(); - let classes: Vec<_> = type_scope - .class_bindings - .elements(process)? - .iter() - .filter_map(|ptr| read_class_binding(process, *ptr).ok()) - .collect(); + let classes: Vec<_> = type_scope + .class_bindings + .elements(process)? + .iter() + .filter_map(|ptr| read_class_binding(process, *ptr).ok()) + .collect(); - let enums: Vec<_> = type_scope - .enum_bindings - .elements(process)? - .iter() - .filter_map(|ptr| read_enum_binding(process, *ptr).ok()) - .collect(); + let enums: Vec<_> = type_scope + .enum_bindings + .elements(process)? + .iter() + .filter_map(|ptr| read_enum_binding(process, *ptr).ok()) + .collect(); - debug!( - "found type scope: {} at {:#X} (classes count: {}) (enums count: {})", - module_name, - type_scope_ptr.to_umem(), - classes.len(), - enums.len() - ); + if classes.is_empty() && enums.is_empty() { + return Ok(acc); + } - Ok(TypeScope { - module_name, - classes, - enums, - }) - }) - .collect() + debug!( + "found type scope: {} at {:#X} (classes count: {}) (enums count: {})", + module_name, + type_scope_ptr.to_umem(), + classes.len(), + enums.len(), + ); + + acc.push(TypeScope { + module_name, + classes, + enums, + }); + + Ok(acc) + }) } diff --git a/src/output/mod.rs b/src/output/mod.rs index 4331e4e..6d21049 100644 --- a/src/output/mod.rs +++ b/src/output/mod.rs @@ -234,10 +234,10 @@ impl Results { self.offsets .iter() .find_map(|(module_name, offsets)| { - let (_name, value) = offsets.iter().find(|(name, _)| *name == "dwBuildNumber")?; let module = process.module_by_name(module_name).ok()?; + let offset = offsets.iter().find(|(name, _)| *name == "dwBuildNumber")?; - process.read(module.base + value).ok() + process.read(module.base + offset.1).ok() }) .ok_or(Error::Other("unable to read build number")) } diff --git a/src/output/schemas.rs b/src/output/schemas.rs index 1f7c6ab..5061268 100644 --- a/src/output/schemas.rs +++ b/src/output/schemas.rs @@ -15,11 +15,6 @@ impl CodeGen for SchemaMap { self.write_content(results, indent_size, |fmt| { fmt.block("namespace CS2Dumper.Schemas", false, |fmt| { for (module_name, (classes, enums)) in self { - // Skip empty modules. - if classes.is_empty() && enums.is_empty() { - continue; - } - writeln!(fmt, "// Module: {}", module_name)?; writeln!(fmt, "// Classes count: {}", classes.len())?; writeln!(fmt, "// Enums count: {}", enums.len())?; @@ -116,11 +111,6 @@ impl CodeGen for SchemaMap { fmt.block("namespace cs2_dumper", false, |fmt| { fmt.block("namespace schemas", false, |fmt| { for (module_name, (classes, enums)) in self { - // Skip empty modules. - if classes.is_empty() && enums.is_empty() { - continue; - } - writeln!(fmt, "// Module: {}", module_name)?; writeln!(fmt, "// Classes count: {}", classes.len())?; writeln!(fmt, "// Enums count: {}", enums.len())?; @@ -302,11 +292,6 @@ impl CodeGen for SchemaMap { fmt.block("pub mod cs2_dumper", false, |fmt| { fmt.block("pub mod schemas", false, |fmt| { for (module_name, (classes, enums)) in self { - // Skip empty modules. - if classes.is_empty() && enums.is_empty() { - continue; - } - writeln!(fmt, "// Module: {}", module_name)?; writeln!(fmt, "// Classes count: {}", classes.len())?; writeln!(fmt, "// Enums count: {}", enums.len())?;