Add our own asmjit

Since the newest version of asmjit was bugged, I made my own branch and made a branch with the old commit that works.
This commit is contained in:
Joelrau 2021-01-06 00:15:46 +02:00
parent 0449f6e583
commit e2988d6193
3 changed files with 7 additions and 2 deletions

4
.gitmodules vendored
View File

@ -29,3 +29,7 @@
[submodule "deps/discord-rpc"]
path = deps/discord-rpc
url = https://github.com/discord/discord-rpc.git
[submodule "deps/asmjit"]
path = deps/asmjit
url = https://github.com/Joelrau/asmjit.git
branch = old-state

1
deps/asmjit vendored Submodule

@ -0,0 +1 @@
Subproject commit 9cb2b298e1cdcc82cd014302cc19891bdbe4dd2b

View File

@ -87,12 +87,12 @@ namespace utils::hook
asmjit::Error assembler::call(void* target)
{
return Assembler::call(target);
return Assembler::call(size_t(target));
}
asmjit::Error assembler::jmp(void* target)
{
return Assembler::jmp(target);
return Assembler::jmp(size_t(target));
}
detour::detour(const size_t place, void* target) : detour(reinterpret_cast<void*>(place), target)