TF2 GetHoliday detour now detours UTIL_GetHoliday (bug 4700, r=fyren).
This commit is contained in:
parent
5ff8ec62e0
commit
e8a6040926
@ -4,9 +4,9 @@ CDetour *getHolidayDetour = NULL;
|
||||
|
||||
IForward *g_getHolidayForward = NULL;
|
||||
|
||||
DETOUR_DECL_MEMBER0(GetHoliday, int)
|
||||
DETOUR_DECL_STATIC0(GetHoliday, int)
|
||||
{
|
||||
int actualres = DETOUR_MEMBER_CALL(GetHoliday)();
|
||||
int actualres = DETOUR_STATIC_CALL(GetHoliday)();
|
||||
if (!g_getHolidayForward)
|
||||
{
|
||||
g_pSM->LogMessage(myself, "Invalid Forward");
|
||||
@ -29,7 +29,7 @@ DETOUR_DECL_MEMBER0(GetHoliday, int)
|
||||
|
||||
void InitialiseGetHolidayDetour()
|
||||
{
|
||||
getHolidayDetour = DETOUR_CREATE_MEMBER(GetHoliday, "GetHoliday");
|
||||
getHolidayDetour = DETOUR_CREATE_STATIC(GetHoliday, "GetHoliday");
|
||||
|
||||
if (!getHolidayDetour)
|
||||
{
|
||||
|
@ -84,8 +84,8 @@
|
||||
"GetHoliday"
|
||||
{
|
||||
"library" "server"
|
||||
"windows" "\x81\xEC\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x83\x2A\x2A\x2A\x56\x8B\xF1\x89\x2A\x2A\x2A\x74\x2A\xB8"
|
||||
"linux" "@_ZN12CTFGameRules10GetHolidayEv"
|
||||
"windows" "\x81\xEC\x2A\x2A\x2A\x2A\x53\x55\x56\x57\x6A\x00\xE8\xF5"
|
||||
"linux" "@_Z15UTIL_GetHolidayv"
|
||||
}
|
||||
"MakeBleed"
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user