Skip to content

Commit

Permalink
Rework server list implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Jun 7, 2024
1 parent bd55be3 commit b00f5ac
Show file tree
Hide file tree
Showing 8 changed files with 313 additions and 13 deletions.
113 changes: 100 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions hook/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ mint_lib = { path = "../mint_lib" }
bitflags = "2.4.1"
widestring = "1.0.2"
tokio = { workspace = true, features = ["full"] }
tokio-tungstenite = { version = "0.23.0", features = ["rustls"] }
futures-util = "0.3.30"
futures = "0.3.30"
2 changes: 2 additions & 0 deletions hook/src/hooks/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![allow(clippy::missing_transmute_annotations)]

mod server_list;
mod ws;

use std::{
ffi::c_void,
Expand Down Expand Up @@ -51,6 +52,7 @@ pub unsafe fn initialize() -> Result<()> {
]
.iter()
.chain(server_list::kismet_hooks().iter())
.chain(ws::kismet_hooks().iter())
.cloned()
.collect::<std::collections::HashMap<_, ExecFn>>();

Expand Down
Loading

0 comments on commit b00f5ac

Please sign in to comment.