Supports CNBETA 3.7.55

This commit is contained in:
HuLiNap
2025-11-28 16:55:02 +07:00
parent a380310b14
commit 3056627b1f
2 changed files with 3 additions and 3 deletions

View File

@@ -90,9 +90,9 @@ fn onAttach() void {
var pca = zz.PageChunkAllocator.init() catch unreachable;
const allocator = pca.allocator();
_ = intercept(allocator, base + 0x15EA7C90, MakeInitialUrlHook);
_ = intercept(allocator, base + 0x15B78EC0, MakeInitialUrlHook);
const dither_func: usize = 0x75F9DE0;
const dither_func: usize = 0x75CDD10;
var prot: windows.DWORD = windows.PAGE_EXECUTE_READWRITE;
windows.VirtualProtect(@ptrFromInt(base + dither_func), 1, prot, &prot) catch unreachable;

View File

@@ -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 + 0x168AAC0))(str.ptr);
return @as(*const fn ([*]const u8) callconv(.c) usize, @ptrFromInt(root.base + 0x1682470))(str.ptr);
}