Skip to content

Fix crash_metrics.dat not being generated upon a crash#271

Merged
OrfeasZ merged 1 commit into
OrfeasZ:masterfrom
AnthonyFuller:crash-metrics-fix
Apr 8, 2026
Merged

Fix crash_metrics.dat not being generated upon a crash#271
OrfeasZ merged 1 commit into
OrfeasZ:masterfrom
AnthonyFuller:crash-metrics-fix

Conversation

@AnthonyFuller
Copy link
Copy Markdown
Contributor

@AnthonyFuller AnthonyFuller commented Mar 14, 2026

As title, this makes it so crash_metrics.dat is always generated if Sentry reporting is enabled or not.

The OnCrash callback could be a member of the class (pass this instead of NULL as the closure), but I decided against that in the off chance it gets destroyed at some point (although it would be a static function or need one to cast the closure). Plus, that would also mean the Sentry include would have to be added to ModSDK.h which just felt improper to me.

@OrfeasZ OrfeasZ merged commit c45a860 into OrfeasZ:master Apr 8, 2026
1 of 2 checks passed
@AnthonyFuller AnthonyFuller deleted the crash-metrics-fix branch April 9, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants