TF2 GetHoliday detour now detours UTIL_GetHoliday (bug 4700, r=fyren).
This commit is contained in:
parent
7627bf80b9
commit
ac738aff10
@ -35,9 +35,9 @@ CDetour *getHolidayDetour = NULL;
|
|||||||
|
|
||||||
IForward *g_getHolidayForward = 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)
|
if (!g_getHolidayForward)
|
||||||
{
|
{
|
||||||
g_pSM->LogMessage(myself, "Invalid Forward");
|
g_pSM->LogMessage(myself, "Invalid Forward");
|
||||||
@ -60,7 +60,7 @@ DETOUR_DECL_MEMBER0(GetHoliday, int)
|
|||||||
|
|
||||||
void InitialiseGetHolidayDetour()
|
void InitialiseGetHolidayDetour()
|
||||||
{
|
{
|
||||||
getHolidayDetour = DETOUR_CREATE_MEMBER(GetHoliday, "GetHoliday");
|
getHolidayDetour = DETOUR_CREATE_STATIC(GetHoliday, "GetHoliday");
|
||||||
|
|
||||||
if (!getHolidayDetour)
|
if (!getHolidayDetour)
|
||||||
{
|
{
|
||||||
|
@ -95,9 +95,9 @@
|
|||||||
"GetHoliday"
|
"GetHoliday"
|
||||||
{
|
{
|
||||||
"library" "server"
|
"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"
|
"windows" "\x81\xEC\x2A\x2A\x2A\x2A\x53\x55\x56\x57\x6A\x00\xE8\xF5"
|
||||||
"linux" "@_ZN12CTFGameRules10GetHolidayEv"
|
"linux" "@_Z15UTIL_GetHolidayv"
|
||||||
"mac" "@_ZN12CTFGameRules10GetHolidayEv"
|
"mac" "@_Z15UTIL_GetHolidayv"
|
||||||
}
|
}
|
||||||
"MakeBleed"
|
"MakeBleed"
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user