mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-04-05 00:25:36 +08:00
Shorten some signatures
This commit is contained in:
parent
7d5de35805
commit
a4b9e4abe6
16
config.json
16
config.json
@ -79,7 +79,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dwForceCrouch",
|
"name": "dwForceCrouch",
|
||||||
"module": "client.dll",
|
"module": "client.dll",
|
||||||
"pattern": "48 8D 05 ? ? ? ? 48 89 45 ? 48 8D 05 ? ? ? ? 48 89 45 ? 48 8D 05 ? ? ? ? 48 89 45 ? 48 8D 05 ? ? ? ? 48 89 45 ? 48 8D 05 ? ? ? ? 48 89 45 ? 48 8D 05 ? ? ? ? 48 89 45 ? 4C 6B E3",
|
"pattern": "48 8D 05 ? ? ? ? 48 89 05 ? ? ? ? 48 83 C4 ? E9 ? ? ? ? CC CC CC CC CC CC CC CC CC CC 48 83 EC ? 66 C7 44 24",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "rip"
|
"type": "rip"
|
||||||
@ -93,7 +93,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dwForceForward",
|
"name": "dwForceForward",
|
||||||
"module": "client.dll",
|
"module": "client.dll",
|
||||||
"pattern": "48 8D 05 ? ? ? ? 48 89 45 ? 48 8D 05 ? ? ? ? 48 89 45 ? 48 8D 05 ? ? ? ? 48 89 45 ? 48 8D 05 ? ? ? ? 48 89 45 ? 48 8D 05 ? ? ? ? 48 89 45 ? 4C 6B E3",
|
"pattern": "48 8D 05 ? ? ? ? 48 89 05 ? ? ? ? 48 83 C4 ? E9 ? ? ? ? CC CC CC CC CC CC CC CC CC CC 48 81 EC",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "rip"
|
"type": "rip"
|
||||||
@ -149,7 +149,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dwGameEntitySystem",
|
"name": "dwGameEntitySystem",
|
||||||
"module": "client.dll",
|
"module": "client.dll",
|
||||||
"pattern": "48 8B 1D ? ? ? ? 48 89 1D",
|
"pattern": "48 89 0D ? ? ? ? E9 ? ? ? ? CC",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "rip"
|
"type": "rip"
|
||||||
@ -181,7 +181,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dwGameTypes",
|
"name": "dwGameTypes",
|
||||||
"module": "matchmaking.dll",
|
"module": "matchmaking.dll",
|
||||||
"pattern": "48 8D 0D ? ? ? ? E9 ? ? ? ? CC CC CC CC 48 8D 0D ? ? ? ? E9 ? ? ? ? CC CC CC CC 48 83 EC ? F0 81 0D",
|
"pattern": "48 8B 05 ? ? ? ? 48 8D 0D ? ? ? ? 33 D2",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "rip"
|
"type": "rip"
|
||||||
@ -191,7 +191,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dwGameTypes_mapName",
|
"name": "dwGameTypes_mapName",
|
||||||
"module": "matchmaking.dll",
|
"module": "matchmaking.dll",
|
||||||
"pattern": "48 8D 0D ? ? ? ? E9 ? ? ? ? CC CC CC CC 48 8D 0D ? ? ? ? E9 ? ? ? ? CC CC CC CC 48 83 EC ? F0 81 0D",
|
"pattern": "48 8B 05 ? ? ? ? 48 8D 0D ? ? ? ? 33 D2",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "rip"
|
"type": "rip"
|
||||||
@ -205,7 +205,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dwGlobalVars",
|
"name": "dwGlobalVars",
|
||||||
"module": "client.dll",
|
"module": "client.dll",
|
||||||
"pattern": "48 89 0D ? ? ? ? 48 89 41",
|
"pattern": "48 89 15 ? ? ? ? 48 8D 05 ? ? ? ? 48 85 D2",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "rip"
|
"type": "rip"
|
||||||
@ -245,7 +245,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dwLocalPlayerController",
|
"name": "dwLocalPlayerController",
|
||||||
"module": "client.dll",
|
"module": "client.dll",
|
||||||
"pattern": "48 8B 05 ? ? ? ? 48 85 C0 74 4F",
|
"pattern": "48 8B 05 ? ? ? ? 48 85 C0 74 ? 8B 88",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "rip"
|
"type": "rip"
|
||||||
@ -339,7 +339,7 @@
|
|||||||
{
|
{
|
||||||
"name": "dwSensitivity",
|
"name": "dwSensitivity",
|
||||||
"module": "client.dll",
|
"module": "client.dll",
|
||||||
"pattern": "48 8B 05 ? ? ? ? 48 8B 40 ? F3 0F 10 00 F3 0F 59 86",
|
"pattern": "48 8B 05 ? ? ? ? 48 8B 40 ? F3 41 0F 59 F4",
|
||||||
"operations": [
|
"operations": [
|
||||||
{
|
{
|
||||||
"type": "rip"
|
"type": "rip"
|
||||||
|
@ -11,7 +11,10 @@ impl FileBuilder for CppFileBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn write_top_level(&mut self, output: &mut dyn Write) -> Result<()> {
|
fn write_top_level(&mut self, output: &mut dyn Write) -> Result<()> {
|
||||||
write!(output, "#pragma once\n\n#include <cstddef>\n\n")
|
writeln!(output, "#pragma once\n")?;
|
||||||
|
writeln!(output, "#include <cstddef>\n")?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn write_namespace(
|
fn write_namespace(
|
||||||
|
@ -27,6 +27,11 @@ pub enum Operation {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
|
pub struct Config {
|
||||||
|
pub signatures: Vec<Signature>,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
pub struct Signature {
|
pub struct Signature {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
@ -34,8 +39,3 @@ pub struct Signature {
|
|||||||
pub pattern: String,
|
pub pattern: String,
|
||||||
pub operations: Vec<Operation>,
|
pub operations: Vec<Operation>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
|
||||||
pub struct Config {
|
|
||||||
pub signatures: Vec<Signature>,
|
|
||||||
}
|
|
||||||
|
@ -119,8 +119,8 @@ fn main() -> Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn map_file_extension_to_builder(ext: &str) -> Result<FileBuilderEnum, &'static str> {
|
fn map_file_extension_to_builder(extension: &str) -> Result<FileBuilderEnum, &'static str> {
|
||||||
match ext {
|
match extension {
|
||||||
".cs" => Ok(FileBuilderEnum::CSharpFileBuilder(CSharpFileBuilder)),
|
".cs" => Ok(FileBuilderEnum::CSharpFileBuilder(CSharpFileBuilder)),
|
||||||
".hpp" => Ok(FileBuilderEnum::CppFileBuilder(CppFileBuilder)),
|
".hpp" => Ok(FileBuilderEnum::CppFileBuilder(CppFileBuilder)),
|
||||||
".json" => Ok(FileBuilderEnum::JsonFileBuilder(JsonFileBuilder::default())),
|
".json" => Ok(FileBuilderEnum::JsonFileBuilder(JsonFileBuilder::default())),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user