refactor: minor changes
- use VA directly on interceptor instead of RVA
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
use crate::{
|
||||
addr::{GAME_ASSEMBLY_BASE, rva_config},
|
||||
il2cpp_string::Il2cppString,
|
||||
};
|
||||
use crate::{addr::rva_config, il2cpp_string::Il2cppString};
|
||||
|
||||
use super::{HkrpgModule, HkrpgModuleContext};
|
||||
|
||||
@@ -14,7 +11,7 @@ impl HkrpgModule for HkrpgModuleContext<Crypto> {
|
||||
let config = rva_config();
|
||||
if config.sdk_public_key != 0 {
|
||||
unsafe {
|
||||
*(GAME_ASSEMBLY_BASE.wrapping_add(config.sdk_public_key) as *mut Il2cppString) =
|
||||
*(config.sdk_public_key as *mut Il2cppString) =
|
||||
Il2cppString::new(ACCOUNT_RSA_KEY_REPLACEMENT)
|
||||
}
|
||||
println!("[crypto::init] AccountRSAKey replaced")
|
||||
|
||||
Reference in New Issue
Block a user