From a380310b14c14526e08ddeb28883ce306d127a51 Mon Sep 17 00:00:00 2001 From: HuLiNap Date: Tue, 18 Nov 2025 14:33:20 +0700 Subject: [PATCH] Supports CNBETA 3.7.53 --- src/root.zig | 4 ++-- src/util.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/root.zig b/src/root.zig index a754be1..c835b6a 100644 --- a/src/root.zig +++ b/src/root.zig @@ -90,9 +90,9 @@ fn onAttach() void { var pca = zz.PageChunkAllocator.init() catch unreachable; const allocator = pca.allocator(); - _ = intercept(allocator, base + 0x15E69E60, MakeInitialUrlHook); + _ = intercept(allocator, base + 0x15EA7C90, MakeInitialUrlHook); - const dither_func: usize = 0x75F1170; + const dither_func: usize = 0x75F9DE0; var prot: windows.DWORD = windows.PAGE_EXECUTE_READWRITE; windows.VirtualProtect(@ptrFromInt(base + dither_func), 1, prot, &prot) catch unreachable; diff --git a/src/util.zig b/src/util.zig index f9198b7..a094574 100644 --- a/src/util.zig +++ b/src/util.zig @@ -15,5 +15,5 @@ pub fn csharpStringReplace(object: usize, pattern: []const u16, replacement: []c } pub fn il2cppStringNew(str: []const u8) usize { - return @as(*const fn ([*]const u8) callconv(.c) usize, @ptrFromInt(root.base + 0x168B340))(str.ptr); + return @as(*const fn ([*]const u8) callconv(.c) usize, @ptrFromInt(root.base + 0x168AAC0))(str.ptr); }