3 Commits

Author SHA1 Message Date
Jannes
59b661846f Fix Rust compiler error
Latest Rust releases throws "cannot assign twice to immutable variable" when compiling main.rs. This commit fixes this error.
2025-11-05 12:30:43 +02:00
Jannes
ff84f45a6e Merge pull request #460 from estdae/update-network-game-sig
fix: new dwNetworkGameClient signature
2025-11-05 12:07:32 +02:00
dae
23a60dff28 fix: new dwNetworkGameClient signature 2025-11-05 10:35:27 +02:00
7 changed files with 14 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
00:26:19 [INFO] found 16 buttons 08:27:31 [INFO] found 16 buttons
00:26:20 [INFO] found 134 interfaces across 35 modules 08:27:31 [INFO] found 134 interfaces across 35 modules
00:26:21 [INFO] found 32 offsets across 5 modules 08:27:32 [INFO] found 32 offsets across 5 modules
00:26:21 [INFO] found 2677 classes and 415 enums across 18 modules 08:27:32 [INFO] found 2677 classes and 415 enums across 18 modules
00:26:21 [INFO] analysis completed in 2.13s 08:27:32 [INFO] analysis completed in 1.12s

View File

@@ -1,5 +1,5 @@
// Generated using https://github.com/a2x/cs2-dumper // Generated using https://github.com/a2x/cs2-dumper
// 2025-11-05 06:01:01.132204 UTC // 2025-11-05 08:27:32.294171800 UTC
namespace CS2Dumper.Offsets { namespace CS2Dumper.Offsets {
// Module: client.dll // Module: client.dll
@@ -25,6 +25,7 @@ namespace CS2Dumper.Offsets {
// Module: engine2.dll // Module: engine2.dll
public static class Engine2Dll { public static class Engine2Dll {
public const nint dwBuildNumber = 0x5F03E4; public const nint dwBuildNumber = 0x5F03E4;
public const nint dwNetworkGameClient = 0x8EA518;
public const nint dwNetworkGameClient_clientTickCount = 0x390; public const nint dwNetworkGameClient_clientTickCount = 0x390;
public const nint dwNetworkGameClient_deltaTick = 0x23C; public const nint dwNetworkGameClient_deltaTick = 0x23C;
public const nint dwNetworkGameClient_isBackgroundMap = 0x2C1467; public const nint dwNetworkGameClient_isBackgroundMap = 0x2C1467;

View File

@@ -1,5 +1,5 @@
// Generated using https://github.com/a2x/cs2-dumper // Generated using https://github.com/a2x/cs2-dumper
// 2025-11-05 06:01:01.132204 UTC // 2025-11-05 08:27:32.294171800 UTC
#pragma once #pragma once
@@ -30,6 +30,7 @@ namespace cs2_dumper {
// Module: engine2.dll // Module: engine2.dll
namespace engine2_dll { namespace engine2_dll {
constexpr std::ptrdiff_t dwBuildNumber = 0x5F03E4; constexpr std::ptrdiff_t dwBuildNumber = 0x5F03E4;
constexpr std::ptrdiff_t dwNetworkGameClient = 0x8EA518;
constexpr std::ptrdiff_t dwNetworkGameClient_clientTickCount = 0x390; constexpr std::ptrdiff_t dwNetworkGameClient_clientTickCount = 0x390;
constexpr std::ptrdiff_t dwNetworkGameClient_deltaTick = 0x23C; constexpr std::ptrdiff_t dwNetworkGameClient_deltaTick = 0x23C;
constexpr std::ptrdiff_t dwNetworkGameClient_isBackgroundMap = 0x2C1467; constexpr std::ptrdiff_t dwNetworkGameClient_isBackgroundMap = 0x2C1467;

View File

@@ -20,6 +20,7 @@
}, },
"engine2.dll": { "engine2.dll": {
"dwBuildNumber": 6226916, "dwBuildNumber": 6226916,
"dwNetworkGameClient": 9348376,
"dwNetworkGameClient_clientTickCount": 912, "dwNetworkGameClient_clientTickCount": 912,
"dwNetworkGameClient_deltaTick": 572, "dwNetworkGameClient_deltaTick": 572,
"dwNetworkGameClient_isBackgroundMap": 2888807, "dwNetworkGameClient_isBackgroundMap": 2888807,

View File

@@ -1,5 +1,5 @@
// Generated using https://github.com/a2x/cs2-dumper // Generated using https://github.com/a2x/cs2-dumper
// 2025-11-05 06:01:01.132204 UTC // 2025-11-05 08:27:32.294171800 UTC
#![allow(non_upper_case_globals, unused)] #![allow(non_upper_case_globals, unused)]
@@ -28,6 +28,7 @@ pub mod cs2_dumper {
// Module: engine2.dll // Module: engine2.dll
pub mod engine2_dll { pub mod engine2_dll {
pub const dwBuildNumber: usize = 0x5F03E4; pub const dwBuildNumber: usize = 0x5F03E4;
pub const dwNetworkGameClient: usize = 0x8EA518;
pub const dwNetworkGameClient_clientTickCount: usize = 0x390; pub const dwNetworkGameClient_clientTickCount: usize = 0x390;
pub const dwNetworkGameClient_deltaTick: usize = 0x23C; pub const dwNetworkGameClient_deltaTick: usize = 0x23C;
pub const dwNetworkGameClient_isBackgroundMap: usize = 0x2C1467; pub const dwNetworkGameClient_isBackgroundMap: usize = 0x2C1467;

View File

@@ -102,7 +102,7 @@ pattern_map! {
}, },
engine2 => { engine2 => {
"dwBuildNumber" => pattern!("8905${'} 488d0d${} ff15${} 488b0d") => None, "dwBuildNumber" => pattern!("8905${'} 488d0d${} ff15${} 488b0d") => None,
"dwNetworkGameClient" => pattern!("48893d${'} 488d15") => None, "dwNetworkGameClient" => pattern!("48893d${'} ff8728020000") => None,
"dwNetworkGameClient_clientTickCount" => pattern!("8b81u4 c3 cccccccccccccccccc 8b81${} c3 cccccccccccccccccc 83b9") => None, "dwNetworkGameClient_clientTickCount" => pattern!("8b81u4 c3 cccccccccccccccccc 8b81${} c3 cccccccccccccccccc 83b9") => None,
"dwNetworkGameClient_deltaTick" => pattern!("4c8db7u4 4c897c24") => None, "dwNetworkGameClient_deltaTick" => pattern!("4c8db7u4 4c897c24") => None,
"dwNetworkGameClient_isBackgroundMap" => pattern!("0fb681u4 c3 cccccccccccccccc 0fb681${} c3 cccccccccccccccc 4053") => None, "dwNetworkGameClient_isBackgroundMap" => pattern!("0fb681u4 c3 cccccccccccccccc 0fb681${} c3 cccccccccccccccc 4053") => None,

View File

@@ -94,7 +94,7 @@ fn main() -> Result<()> {
let mut os = match args.connector { let mut os = match args.connector {
Some(conn) => { Some(conn) => {
let inventory = Inventory::scan(); let mut inventory = Inventory::scan();
inventory inventory
.builder() .builder()