Better hooked function calling.
This commit is contained in:
@ -26,7 +26,7 @@ namespace Components
|
||||
memcpy((void*)0x66E1CB0, &fastfiles, sizeof(fastfiles));
|
||||
Game::LoadInitialFF();
|
||||
|
||||
Utils::Hook::Call<void>(0x4F84C0);
|
||||
Utils::Hook::Call<void()>(0x4F84C0)();
|
||||
}
|
||||
|
||||
void Dedicated::MapRotate()
|
||||
@ -129,7 +129,7 @@ namespace Components
|
||||
callback();
|
||||
}
|
||||
|
||||
Utils::Hook::Call<void>(0x5A8E80);
|
||||
Utils::Hook::Call<void()>(0x5A8E80)();
|
||||
}
|
||||
|
||||
Dedicated::Dedicated()
|
||||
|
@ -27,14 +27,8 @@ namespace Components
|
||||
DWORD Playlist::StorePlaylistStub(const char** buffer)
|
||||
{
|
||||
Playlist::CurrentPlaylistBuffer = *buffer;
|
||||
//return Utils::Hook::Call<DWORD>(0x4C0350);
|
||||
__asm
|
||||
{
|
||||
push buffer
|
||||
mov eax, 4C0350h
|
||||
call eax
|
||||
add esp, 4h
|
||||
}
|
||||
|
||||
return Utils::Hook::Call<DWORD(const char**)>(0x4C0350)(buffer);
|
||||
}
|
||||
|
||||
void Playlist::PlaylistRequest(Network::Address address, std::string data)
|
||||
|
Reference in New Issue
Block a user