refactor: minor changes
- use VA directly on interceptor instead of RVA
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::{ffi::CString, fmt::Display};
|
||||
|
||||
use crate::addr::{GAME_ASSEMBLY_BASE, rva_config};
|
||||
use crate::addr::rva_config;
|
||||
|
||||
#[repr(transparent)]
|
||||
pub struct Il2cppString(usize);
|
||||
@@ -15,7 +15,7 @@ impl Il2cppString {
|
||||
pub fn new(string: &str) -> Self {
|
||||
let func = unsafe {
|
||||
std::mem::transmute::<usize, fn(*const u8, usize) -> usize>(
|
||||
*GAME_ASSEMBLY_BASE + rva_config().il2cpp_string_new_len,
|
||||
rva_config().il2cpp_string_new_len,
|
||||
)
|
||||
};
|
||||
let len = string.len();
|
||||
|
||||
Reference in New Issue
Block a user