Merge pull request #47 from superyu1337/main

Include build number in generated files
This commit is contained in:
a2x 2023-12-30 15:38:24 +10:00 committed by GitHub
commit 861de6f984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
75 changed files with 116 additions and 72 deletions

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class AimMatrixOpFixedSettings_t {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:56 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class AimMatrixOpFixedSettings_t:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
public static class ActiveModelConfig_t {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:58 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:58 +0000
Sat, 30 Dec 2023 03:17:26 +0000
'''
class ActiveModelConfig_t:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:58 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class CEmptyEntityInstance {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:56 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class CEmptyEntityInstance:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:58 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
public static class CAnimScriptBase {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:58 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:58 +0000
Sat, 30 Dec 2023 03:17:26 +0000
'''
class CAnimScriptBase:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:58 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:58 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
public static class animationsystem_dll { // animationsystem.dll

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:58 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:58 +0000
Sat, 30 Dec 2023 03:17:26 +0000
'''
class animationsystem_dll: # animationsystem.dll

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:58 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class MaterialParamBuffer_t { // MaterialParam_t

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:56 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class MaterialParamBuffer_t: # MaterialParam_t

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class ChangeAccessorFieldPathIndex_t {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:56 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class ChangeAccessorFieldPathIndex_t:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:15:14 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
public static class client_dll { // client.dll
@ -40,6 +40,10 @@ public static class engine2_dll { // engine2.dll
public const nint dwWindowWidth = 0x596E18;
}
public static class game_info { // Some additional information about the game at dump time
public const nint buildNumber = 0x369F; // Game build number
}
public static class inputsystem_dll { // inputsystem.dll
public const nint dwInputSystem = 0x35760;
}

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:15:14 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#pragma once
@ -44,6 +44,10 @@ namespace engine2_dll { // engine2.dll
constexpr std::ptrdiff_t dwWindowWidth = 0x596E18;
}
namespace game_info { // Some additional information about the game at dump time
constexpr std::ptrdiff_t buildNumber = 0x369F; // Game build number
}
namespace inputsystem_dll { // inputsystem.dll
constexpr std::ptrdiff_t dwInputSystem = 0x35760;
}

View File

@ -133,6 +133,15 @@
},
"comment": "engine2.dll"
},
"game_info": {
"data": {
"buildNumber": {
"value": 13983,
"comment": "Game build number"
}
},
"comment": "Some additional information about the game at dump time"
},
"inputsystem_dll": {
"data": {
"dwInputSystem": {

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:15:14 +0000
Sat, 30 Dec 2023 03:17:26 +0000
'''
class client_dll: # client.dll
@ -38,5 +38,8 @@ class engine2_dll: # engine2.dll
dwWindowHeight = 0x596E1C
dwWindowWidth = 0x596E18
class game_info: # Some additional information about the game at dump time
buildNumber = 0x369F # Game build number
class inputsystem_dll: # inputsystem.dll
dwInputSystem = 0x35760

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:15:14 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]
@ -42,6 +42,10 @@ pub mod engine2_dll { // engine2.dll
pub const dwWindowWidth: usize = 0x596E18;
}
pub mod game_info { // Some additional information about the game at dump time
pub const buildNumber: usize = 0x369F; // Game build number
}
pub mod inputsystem_dll { // inputsystem.dll
pub const dwInputSystem: usize = 0x35760;
}

View File

@ -32,5 +32,7 @@ engine2_dll: # engine2.dll
dwNetworkGameClient_signOnState: 576
dwWindowHeight: 5860892
dwWindowWidth: 5860888
game_info: # Some additional information about the game at dump time
buildNumber: 13983 # Game build number
inputsystem_dll: # inputsystem.dll
dwInputSystem: 218976

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class CBaseRendererSource2 { // CParticleFunctionRenderer

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:57 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class CBaseRendererSource2: # CParticleFunctionRenderer

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class CBasePulseGraphInstance {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:57 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class CBasePulseGraphInstance:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class RenderInputLayoutField_t {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:56 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class RenderInputLayoutField_t:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class AABB_t {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:56 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class AABB_t:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class CSSDSEndFrameViewInfo {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:57 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class CSSDSEndFrameViewInfo:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class CExampleSchemaVData_Monomorphic {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:56 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class CExampleSchemaVData_Monomorphic:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class ActiveModelConfig_t {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:57 +0000
Sat, 30 Dec 2023 03:17:26 +0000
'''
class ActiveModelConfig_t:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:26 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class CDSPMixgroupModifier {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:57 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class CDSPMixgroupModifier:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class CFeIndexedJiggleBone {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:56 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class CFeIndexedJiggleBone:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:56 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
public static class AggregateLODSetup_t {

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Created using https://github.com/a2x/cs2-dumper
Fri, 22 Dec 2023 03:14:57 +0000
Sat, 30 Dec 2023 03:17:25 +0000
'''
class AggregateLODSetup_t:

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Fri, 22 Dec 2023 03:14:57 +0000
* Sat, 30 Dec 2023 03:17:25 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -111,6 +111,24 @@ pub fn dump_offsets(
(signature.name, address.sub(module.base().0).0)
};
if name == "dwBuildNumber" {
let build_number: u32 = process.read_memory(module.base() + value)?;
debug!("Game build number: <bright-yellow>{}</>", build_number);
let container = entries
.entry(String::from("game_info"))
.or_default();
container.comment = Some(String::from("Some additional information about the game at dump time"));
container.data.push(Entry {
name: String::from("buildNumber"),
value: build_number as usize,
comment: Some(String::from("Game build number")),
indent: Some(indent),
});
}
let container = entries
.entry(signature.module.replace(".", "_"))
.or_default();