Skip to content

Commit d81cc9e

Browse files
committed
Remove logging for FxSystemBP_c::Load
1 parent e4446c9 commit d81cc9e

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

Client/multiplayer_sa/CMultiplayerSA_CrashFixHacks.cpp

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,8 +1923,8 @@ static void _declspec(naked) HOOK_CAnimManager__BlendAnimation()
19231923
//
19241924
// FxSystemBP_c::Load
19251925
//
1926-
// Remove every FxEmitter without a main texture (because of non-standard /models/effects.fxp),
1927-
// because the game logic expects AT LEAST one texture at index 0 ("main texture").
1926+
// Remove every FxEmitter without a main texture because the game logic expects AT LEAST
1927+
// one texture at index 0 ("main texture").
19281928
//
19291929
//////////////////////////////////////////////////////////////////////////////////////////
19301930
// 0x5C0A14 | 5E | pop esi
@@ -1937,21 +1937,6 @@ static void _declspec(naked) HOOK_CAnimManager__BlendAnimation()
19371937
#define HOOKPOS_FxSystemBP_c__Load 0x5C0A15
19381938
#define HOOKSIZE_FxSystemBP_c__Load 19
19391939

1940-
static void LOG_FxSystemBP_c__Load()
1941-
{
1942-
static bool once = false;
1943-
1944-
if (once)
1945-
return;
1946-
1947-
once = true;
1948-
OnCrashAverted(33);
1949-
1950-
SString effectsMD5 = CMD5Hasher::CalculateHexString(PathJoin(GetLaunchPath(), "models", "effects.fxp"));
1951-
const char* isModified = (effectsMD5 == "6143A72E8FF2974DB14F65DF65D952B0") ? "standard" : "non-standard";
1952-
LogEvent(4481, "Crash averted", "FxSystemBP_c::Load", *SString("effects.fxp (%s, %s)", isModified, *effectsMD5), 7709);
1953-
}
1954-
19551940
static void _cdecl POST_PROCESS_FxSystemBP_c__Load(CFxSystemBPSAInterface* blueprint)
19561941
{
19571942
if (!blueprint->cNumOfPrims)
@@ -1977,7 +1962,7 @@ static void _cdecl POST_PROCESS_FxSystemBP_c__Load(CFxSystemBPSAInterface* bluep
19771962

19781963
if (blueprint->cNumOfPrims != count)
19791964
{
1980-
LOG_FxSystemBP_c__Load();
1965+
OnCrashAverted(33);
19811966
blueprint->cNumOfPrims = count;
19821967
}
19831968
}
@@ -2005,7 +1990,7 @@ static void _declspec(naked) HOOK_FxSystemBP_c__Load()
20051990
//
20061991
// FxPrim_c::Enable
20071992
//
2008-
// Add a null-pointer check for the ecx object. This hook is a side-effect of the hook for
1993+
// Add a null-pointer check for the ecx pointer. This hook is a side-effect of the hook for
20091994
// FxSystemBP_c::Load above.
20101995
//
20111996
//////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)