summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-14 03:38:10 +0200
committerbunnei <bunneidev@gmail.com>2021-04-15 01:24:02 +0200
commitc6c0771b12ff7e59ec03b1a25c11233847ef0cc6 (patch)
tree053762f2eb49d0b2dc236a141756d2c59cdb0910 /src/common
parentMerge pull request #6190 from lioncash/constfn2 (diff)
downloadyuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.tar
yuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.tar.gz
yuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.tar.bz2
yuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.tar.lz
yuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.tar.xz
yuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.tar.zst
yuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/assert.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp
index d7d91b96b..4f599af55 100644
--- a/src/common/assert.cpp
+++ b/src/common/assert.cpp
@@ -3,9 +3,12 @@
// Refer to the license.txt file included.
#include "common/assert.h"
-
#include "common/common_funcs.h"
+#include "core/settings.h"
+
void assert_handle_failure() {
- Crash();
+ if (Settings::values.use_debug_asserts) {
+ Crash();
+ }
}