Move UnityPlayer loading into the game payload DLL
This commit is contained in:
@ -18,7 +18,6 @@ main: ; Replacement entry point
|
||||
lea rdx, [rel s_LoadLibraryA]
|
||||
mov rax, [rbp - 10h] ; *GetProcAddress
|
||||
call rax ; rax = *LoadLibraryA
|
||||
mov [rbp - 18h], rax
|
||||
|
||||
lea rcx, [rel dllPath]
|
||||
call rax ; LoadLibraryA(dllPath)
|
||||
@ -28,6 +27,7 @@ main: ; Replacement entry point
|
||||
lea rdx, [rel s_GetModuleHandleA]
|
||||
mov rax, [rbp - 10h] ; *GetProcAddress
|
||||
call rax ; rax = *GetModuleHandle
|
||||
mov [rbp - 18h], rax
|
||||
|
||||
mov rcx, 0
|
||||
call rax ; rax = .exe base address
|
||||
@ -43,7 +43,7 @@ main: ; Replacement entry point
|
||||
|
||||
|
||||
lea rcx, [rel s_UnityPlayer.dll]
|
||||
mov rax, [rbp - 18h] ; *LoadLibraryA
|
||||
mov rax, [rbp - 18h] ; *GetModuleHandleA
|
||||
call rax ; rax = UnityPlayer.dll
|
||||
|
||||
mov rcx, rax
|
||||
|
||||
Reference in New Issue
Block a user