update to 4.6.0
This commit is contained in:
parent
7898141000
commit
d606d196be
4 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,3 @@
|
||||||
# hk4e-patch
|
# hk4e-patch
|
||||||
|
|
||||||
Genshin Impact encryption patch (4.5.0)
|
Genshin Impact encryption patch (4.6.0)
|
|
@ -2,7 +2,7 @@ use std::ffi::CStr;
|
||||||
|
|
||||||
use crate::util;
|
use crate::util;
|
||||||
|
|
||||||
const PTR_TO_STRING_ANSI: usize = 0xC61DB80;
|
const PTR_TO_STRING_ANSI: usize = 0xCF7CE50;
|
||||||
type MarshalPtrToStringAnsi = unsafe extern "fastcall" fn(*const u8) -> *const u8;
|
type MarshalPtrToStringAnsi = unsafe extern "fastcall" fn(*const u8) -> *const u8;
|
||||||
|
|
||||||
pub unsafe fn ptr_to_string_ansi(content: &CStr) -> *const u8 {
|
pub unsafe fn ptr_to_string_ansi(content: &CStr) -> *const u8 {
|
||||||
|
|
|
@ -5,7 +5,7 @@ use crate::marshal;
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use ilhook::x64::Registers;
|
use ilhook::x64::Registers;
|
||||||
|
|
||||||
const UNITY_WEB_REQUEST_SET_URL: usize = 0xCFC7FE0;
|
const UNITY_WEB_REQUEST_SET_URL: usize = 0xD9442D0;
|
||||||
|
|
||||||
pub struct Http;
|
pub struct Http;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ use super::{MhyContext, MhyModule, ModuleType};
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use ilhook::x64::Registers;
|
use ilhook::x64::Registers;
|
||||||
|
|
||||||
const IL2CPP_ARRAY_NEW: usize = 0x5432A0;
|
const IL2CPP_ARRAY_NEW: usize = 0x553C10;
|
||||||
const KEY_SIGN_CHECK: usize = 0x4235;
|
const KEY_SIGN_CHECK: usize = 0x41C5;
|
||||||
|
|
||||||
const KEY_SIZE: u64 = 272;
|
const KEY_SIZE: u64 = 272;
|
||||||
const KEY_PREFIX: u64 = 0x0D700010182020A01;
|
const KEY_PREFIX: u64 = 0x0D700010182020A01;
|
||||||
|
|
Loading…
Reference in a new issue