Skip to content

Commit

Permalink
remove useless concommand and toolchain note (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
catornot authored Nov 28, 2023
1 parent bcd5d61 commit 7b3974d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[toolchain]
channel = "nightly"

# note run rustup component add rust-analyzer
17 changes: 0 additions & 17 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ impl Plugin for RconPlugin {
} else {
return;
};

engine
.register_concommand("test_cnet", test_cnet, "", 0)
.unwrap();
}

fn runframe(&self) {
Expand Down Expand Up @@ -121,16 +117,3 @@ fn run_rcon(rcon_args: HashMap<String, String>) -> Option<std::convert::Infallib
}

entry!(RconPlugin);

#[rrplug::concommand]
fn test_cnet() -> Option<()> {
unsafe {
let client: *const CClient = ENGINE_FUNCTIONS.wait().client_array.add(0).as_ref()?;

let cnet_channel = client.offset(0x290) as *const c_void;

dbg!(cnet_channel);
}

None
}

0 comments on commit 7b3974d

Please sign in to comment.