diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-14 03:38:10 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-04-15 01:24:02 +0200 |
commit | c6c0771b12ff7e59ec03b1a25c11233847ef0cc6 (patch) | |
tree | 053762f2eb49d0b2dc236a141756d2c59cdb0910 /src/common | |
parent | Merge pull request #6190 from lioncash/constfn2 (diff) | |
download | yuzu-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.cpp | 7 |
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(); + } } |