Skip to content

Commit

Permalink
hot reload mint modules
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Nov 4, 2024
1 parent 618349e commit a0ad18a
Show file tree
Hide file tree
Showing 25 changed files with 1,435 additions and 134 deletions.
206 changes: 200 additions & 6 deletions Cargo.lock

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

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[workspace]
nalgebra = "0.33.0"
members = [
"mint_lib",
"hook",
"hook_resolvers",
"workspace_hack",
"workspace_hack", "hook_modules/hook_test", "hook_modules/hook_lib",
]

[workspace.package]
Expand All @@ -15,7 +16,7 @@ edition = "2021"

[workspace.dependencies]
anyhow = { version = "1.0.92", features = ["backtrace"] }
patternsleuth = { git = "https://github.com/trumank/patternsleuth" }
patternsleuth = { git = "https://github.com/trumank/patternsleuth", features = ["image-pe"] }
steamlocate = "2.0.0-beta.4"
repak = { git = "https://github.com/trumank/repak" }
serde = { version = "1.0.214", features = ["derive"] }
Expand All @@ -29,6 +30,7 @@ tracing-subscriber = { version = "0.3.18", features = ["fmt", "env-filter", "std
tokio = "1.41.0"
reqwest = { version = "0.11.27", default-features = false, features = ["blocking", "rustls", "json"] }
snafu = "0.8.5"
nalgebra = "0.33.0"

[package]
name = "mint"
Expand Down Expand Up @@ -113,6 +115,9 @@ strip = true
opt-level = 3
lto = "off"

[profile.release2]
inherits = "release"

# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
Expand Down
4 changes: 3 additions & 1 deletion hook/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ windows = { version = "0.58.0", features = [
"Win32_System_Threading",
] }
mint_lib = { path = "../mint_lib" }
hook_lib = { path = "../hook_modules/hook_lib" }
bitflags = "2.6.0"
widestring = "1.1.0"
tokio = { workspace = true, features = ["full"] }
tracing-appender = "0.2.3"
proxy_dll = { git = "https://github.com/trumank/proxy_dll.git", version = "0.1.0" }
element-ptr = "0.0.2"
nalgebra = "0.32.5"
nalgebra.workspace = true
seq-macro = "0.3.5"
byteorder = "1.5.0"
glob = "0.3.1"
hot-lib-reloader = "0.7.0"
4 changes: 2 additions & 2 deletions hook/src/hooks/debug_drawing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ use na::{Matrix, Matrix4, Point3, Vector3};
use nalgebra as na;

use crate::hooks::ExecFn;
use crate::ue::{
use hook_lib::ue::{
self, get_world, FBatchedLine, FBatchedPoint, FLinearColor, FRotator, FVector, TArray,
ULineBatchComponent, UObject, UWorld,
};
use crate::util::NN;
use hook_lib::util::NN;

pub fn kismet_hooks() -> &'static [(&'static str, ExecFn)] {
&[
Expand Down
Loading

0 comments on commit a0ad18a

Please sign in to comment.