Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

egui-hook

My egui hook. Works with egui 0.25 and tailored for Geometry Dash.

How to use

use egui_hook::{init_hook, set_render_fn};fnrender(ctx:&egui::Context){
egui::Window::new("hello").show(ctx, |ui| {let _ = ui.button("hello");});}unsafeextern"system"fnmain_thread(_lp_param:*mutc_void) -> u32{set_render_fn(render);init_hook();0}#[no_mangle]extern"system"fnDllMain(dll_module:u32,call_reason:u32,_reserved:usize) -> windows::Win32::Foundation::BOOL{match call_reason {1 => unsafe{// DLL_PROCESS_ATTACH
windows::Win32::System::Threading::CreateThread(None,0,Some(main_thread),Some(dll_module as*constc_void),
windows::Win32::System::Threading::THREAD_CREATION_FLAGS(0),None).expect("Failed to create thread");},0 => (),// DLL_PROCESS_DETACH
_ => ()}
windows::Win32::Foundation::TRUE}

About

My egui hook. Works with 0.25 and tailored for Geometry Dash.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages