Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
Code cleanup
  • Loading branch information
luadebug authored Aug 4, 2024
1 parent 22654da commit 66ef519
Show file tree
Hide file tree
Showing 25 changed files with 628 additions and 572 deletions.
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ authors = ["luadebug Lin Evelynn [email protected]"]
publish = false

[dependencies]
windows = { git = "https://github.com/microsoft/windows-rs", features = ["Win32_System_Console", "Win32_System_SystemServices", "Win32_System_LibraryLoader", "Win32_System_Threading", "Win32_Security", "Win32_System_Memory", "Win32_System_Diagnostics", "Win32_System_Diagnostics_Debug", "Win32_Graphics", "Win32_Graphics_OpenGL", "Win32_UI", "Win32_UI_Input", "Win32_UI_Input_KeyboardAndMouse", "Win32_Graphics_Gdi", "Win32_UI_WindowsAndMessaging", "Win32_Globalization", "Win32_System_ProcessStatus"] }
hudhook = { git = "https://github.com/veeenu/hudhook/", features = ["opengl3", "imgui-freetype"] }
windows = { git = "https://github.com/microsoft/windows-rs", features = ["Win32_System_Console",
"Win32_System_SystemServices", "Win32_System_LibraryLoader", "Win32_System_Threading", "Win32_Security",
"Win32_System_Memory", "Win32_System_Diagnostics", "Win32_System_Diagnostics_Debug", "Win32_Graphics",
"Win32_UI", "Win32_UI_Input", "Win32_UI_Input_KeyboardAndMouse", "Win32_Graphics_Gdi",
"Win32_UI_WindowsAndMessaging", "Win32_System_ProcessStatus"] }
hudhook = { git = "https://github.com/veeenu/hudhook/", features = ["opengl3", "imgui-freetype",
"imgui-docking", "imgui-tables-api"] }
tracing-subscriber = "0.3.18"
once_cell = "1.19.0"
ilhook = "2.1.1"
Expand All @@ -20,6 +25,7 @@ serde_yml = "0.0.11"
gnal_tsur = "0.1.0"
pkg-config = "0.3.30"
imgui-sys = { version = "0.12.0", features = ["use-vcpkg"] }
lazy_static = "1.5.0"

[lib]
crate-type = ["cdylib"]
Expand Down
3 changes: 0 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use std::path::Path;
use vcpkg::Error;

fn main() {
match vcpkg::find_package("freetype") {
Ok(freetype) => println!("{:?}", freetype.include_paths),
Expand Down
3 changes: 2 additions & 1 deletion src/draw_utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::ffi::CString;
/*use std::ffi::CString;
use windows::core::PCSTR;
use windows::Win32::Foundation::{GetLastError, COLORREF, RECT};
Expand Down Expand Up @@ -166,3 +166,4 @@ pub unsafe fn draw_circle(hdc: HDC, center: (f32, f32), radius: f32, color: COLO
let _ = DeleteObject(brush);
}
}
*/
2 changes: 1 addition & 1 deletion src/entity.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::offsets::offsets::{
use crate::offsets::{
HEAD_X_FROM_LOCAL_PLAYER, HEAD_Y_FROM_LOCAL_PLAYER, HEAD_Z_FROM_LOCAL_PLAYER,
HEALTH_OFFSET_FROM_LOCAL_PLAYER, NAME_OFFSET_FROM_LOCAL_PLAYER, PITCH_OFFSET,
POSITION_X_FROM_LOCAL_PLAYER, POSITION_Y_FROM_LOCAL_PLAYER, POSITION_Z_FROM_LOCAL_PLAYER,
Expand Down
Loading

0 comments on commit 66ef519

Please sign in to comment.