Update to 4.6.0 #1

Merged
xeon merged 1 commit from zihad/hk4e-patch:master into master 2024-05-22 16:33:25 +00:00
4 changed files with 5 additions and 5 deletions
Showing only changes of commit d606d196be - Show all commits

View file

@ -1,3 +1,3 @@
# hk4e-patch # hk4e-patch
Genshin Impact encryption patch (4.5.0) Genshin Impact encryption patch (4.6.0)

View file

@ -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 {

View file

@ -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;

View file

@ -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;