Skip to content

Commit da4ea45

Browse files
committed
Add is-modified logging for FxSystemBP_c::Load
1 parent f4ee8e8 commit da4ea45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Client/multiplayer_sa/CMultiplayerSA_CrashFixHacks.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,8 +1947,9 @@ static void LOG_FxSystemBP_c__Load()
19471947
once = true;
19481948
OnCrashAverted(33);
19491949

1950-
SString effectsMD5 = CMD5Hasher::CalculateHexString(PathJoin(GetLaunchPath(), "models", "effects.fxp"));
1951-
LogEvent(4481, "Crash averted", "FxSystemBP_c::Load", *SString("effects.fxp (%s)", *effectsMD5), 7711);
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), 7711);
19521953
}
19531954

19541955
static void _cdecl POST_PROCESS_FxSystemBP_c__Load(CFxSystemBPSAInterface* blueprint)

0 commit comments

Comments
 (0)