1
Fork 0
mirror of https://github.com/redstrate/LauncherTweaks.git synced 2025-05-20 17:37:46 +00:00

Add a note to replace find_symbol

This commit is contained in:
Joshua Goins 2025-04-22 15:48:32 -04:00
parent f17c70d3ac
commit 2dfa611d98

View file

@ -14,6 +14,7 @@ pub fn find_signature(sig: Signature) -> Option<*mut u8> {
}
pub fn find_symbol(symbol: &str, module: &str) -> Option<*mut u8> {
// TODO: skidscan can do this too...
let module: Vec<u16> = module.encode_utf16().chain(std::iter::once(0)).collect();
let symbol = CString::new(symbol).expect("Failed to parse symbol!");
unsafe {