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:
parent
f17c70d3ac
commit
2dfa611d98
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue