mirror of
https://git.xeondev.com/HonkaiSlopRail/sr-launcher.git
synced 2025-11-22 06:52:30 -05:00
Supports CNBETA 3.7.52
This commit is contained in:
parent
77c7b0164a
commit
4f33d29d31
@ -90,9 +90,9 @@ fn onAttach() void {
|
||||
var pca = zz.PageChunkAllocator.init() catch unreachable;
|
||||
const allocator = pca.allocator();
|
||||
|
||||
_ = intercept(allocator, base + 0x15E60900, MakeInitialUrlHook);
|
||||
_ = intercept(allocator, base + 0x15E69E60, MakeInitialUrlHook);
|
||||
|
||||
const dither_func: usize = 0x75F4C90;
|
||||
const dither_func: usize = 0x75F1170;
|
||||
|
||||
var prot: windows.DWORD = windows.PAGE_EXECUTE_READWRITE;
|
||||
windows.VirtualProtect(@ptrFromInt(base + dither_func), 1, prot, &prot) catch unreachable;
|
||||
|
||||
@ -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 + 0x1690F70))(str.ptr);
|
||||
return @as(*const fn ([*]const u8) callconv(.c) usize, @ptrFromInt(root.base + 0x168B340))(str.ptr);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user