mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
allow disabling handler with launch flag
This commit is contained in:
parent
2f97fc671d
commit
bf4aa150fc
1 changed files with 10 additions and 5 deletions
|
@ -78,12 +78,17 @@ Result<> Loader::Impl::setup() {
|
|||
log::popNest();
|
||||
}
|
||||
|
||||
log::debug("Setting up crash handler");
|
||||
log::pushNest();
|
||||
if (!crashlog::setupPlatformHandler()) {
|
||||
log::debug("Failed to set up crash handler");
|
||||
// on some platforms, using the crash handler overrides more convenient native handlers
|
||||
if (!this->getLaunchFlag("disable-crash-handler")) {
|
||||
log::debug("Setting up crash handler");
|
||||
log::pushNest();
|
||||
if (!crashlog::setupPlatformHandler()) {
|
||||
log::debug("Failed to set up crash handler");
|
||||
}
|
||||
log::popNest();
|
||||
} else {
|
||||
log::debug("Crash handler setup skipped");
|
||||
}
|
||||
log::popNest();
|
||||
|
||||
log::debug("Loading hooks");
|
||||
log::pushNest();
|
||||
|
|
Loading…
Reference in a new issue