mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-10-07 16:30:01 +08:00
📦 Game Update 13965 (2)
This commit is contained in:
@@ -13,7 +13,7 @@ pub trait FileBuilder {
|
||||
/// * `&str` - A string slice containing the extension of the file.
|
||||
fn extension(&mut self) -> &str;
|
||||
|
||||
/// Write to the top level of the file. The output destination is `output`.
|
||||
/// Writes to the top level of the file. The output destination is `output`.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -25,7 +25,7 @@ pub trait FileBuilder {
|
||||
/// * `Result<()>` - A generic Result type indicating the operations outcome.
|
||||
fn write_top_level(&mut self, output: &mut dyn Write) -> Result<()>;
|
||||
|
||||
/// Write a namespace to the output.
|
||||
/// Writes a namespace to the output.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -44,7 +44,7 @@ pub trait FileBuilder {
|
||||
comment: Option<&str>,
|
||||
) -> Result<()>;
|
||||
|
||||
/// Write a variable to the output.
|
||||
/// Writes a variable to the output.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
|
@@ -161,7 +161,7 @@ mod tests {
|
||||
.expect("Failed to find engine2.dll")
|
||||
.base();
|
||||
|
||||
let build_number = process.read_memory::<u32>(engine_base + 0x487514)?;
|
||||
let build_number = process.read_memory::<u32>(engine_base + 0x488514)?;
|
||||
|
||||
println!("Build number: {}", build_number);
|
||||
|
||||
@@ -254,8 +254,8 @@ mod tests {
|
||||
.expect("Failed to find engine2.dll")
|
||||
.base();
|
||||
|
||||
let window_width = process.read_memory::<u32>(engine_base + 0x5386A8)?;
|
||||
let window_height = process.read_memory::<u32>(engine_base + 0x5386AC)?;
|
||||
let window_width = process.read_memory::<u32>(engine_base + 0x5396D8)?;
|
||||
let window_height = process.read_memory::<u32>(engine_base + 0x5396DC)?;
|
||||
|
||||
println!("Window size: {}x{}", window_width, window_height);
|
||||
|
||||
|
Reference in New Issue
Block a user