Skip to content

Commit

Permalink
WIP WebSocket API
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Jun 5, 2024
1 parent 4dcbbc9 commit 979b268
Show file tree
Hide file tree
Showing 8 changed files with 316 additions and 14 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"
6 changes: 5 additions & 1 deletion hook/src/hooks/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![allow(clippy::missing_transmute_annotations)]

mod ws;

use std::{
ffi::c_void,
path::{Path, PathBuf},
Expand Down Expand Up @@ -49,7 +51,9 @@ pub unsafe fn initialize() -> Result<()> {
exec_print_string as ExecFn,
),
]
.into_iter()
.iter()
.chain(ws::hooks().iter())
.cloned()
.collect::<std::collections::HashMap<_, ExecFn>>();

HookUFunctionBind.initialize(
Expand Down
Loading

0 comments on commit 979b268

Please sign in to comment.