Skip to content

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

Open
AnthonyFuller wants to merge 1 commit intoOrfeasZ:masterfrom
AnthonyFuller:crash-metrics-fix
Open

Fix crash_metrics.dat not being generated upon a crash#271
AnthonyFuller wants to merge 1 commit intoOrfeasZ: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.

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.

1 participant