aboutsummaryrefslogtreecommitdiff
path: root/src/common/assert.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-26 11:46:04 -0500
committerGitHub <noreply@github.com>2023-12-26 11:46:04 -0500
commitf7725444ac7657b3c93cdc13ea9ca5d07a5a997c (patch)
tree670b041b44aeff91afb8fce0e0e0bb288f86f326 /src/common/assert.cpp
parent29a9dc082661e993794a8f1e217c186ae63b635c (diff)
parent85ec46c7d1428fd7ab643579fbed78b53c493a6b (diff)
Merge pull request #12471 from FearlessTobi/port-7146
Port citra-emu/citra#7146: "assert/logging: Stop the logging thread and flush the backends before crashing"
Diffstat (limited to 'src/common/assert.cpp')
-rw-r--r--src/common/assert.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp
index 6026b7dc22..e2c2cade3f 100644
--- a/src/common/assert.cpp
+++ b/src/common/assert.cpp
@@ -3,16 +3,19 @@
#include "common/assert.h"
#include "common/common_funcs.h"
+#include "common/logging/backend.h"
#include "common/settings.h"
void assert_fail_impl() {
if (Settings::values.use_debug_asserts) {
+ Common::Log::Stop();
Crash();
}
}
[[noreturn]] void unreachable_impl() {
+ Common::Log::Stop();
Crash();
throw std::runtime_error("Unreachable code");
}