diff options
| author | 2021-04-13 18:38:10 -0700 | |
|---|---|---|
| committer | 2021-04-14 16:24:02 -0700 | |
| commit | c6c0771b12ff7e59ec03b1a25c11233847ef0cc6 (patch) | |
| tree | 053762f2eb49d0b2dc236a141756d2c59cdb0910 /src/common/assert.cpp | |
| parent | Merge pull request #6190 from lioncash/constfn2 (diff) | |
| download | yuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.tar.gz yuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.tar.xz yuzu-c6c0771b12ff7e59ec03b1a25c11233847ef0cc6.zip | |
core: settings: Add setting for debug assertions and disable by default.
- This is a developer-only setting and no longer needs to be enabled by default.
- Also adds "use_auto_stub" setting to SDL frontend while we are here.
- Supersedes #1340.
Diffstat (limited to 'src/common/assert.cpp')
| -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 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/assert.h" | 5 | #include "common/assert.h" |
| 6 | |||
| 7 | #include "common/common_funcs.h" | 6 | #include "common/common_funcs.h" |
| 8 | 7 | ||
| 8 | #include "core/settings.h" | ||
| 9 | |||
| 9 | void assert_handle_failure() { | 10 | void assert_handle_failure() { |
| 10 | Crash(); | 11 | if (Settings::values.use_debug_asserts) { |
| 12 | Crash(); | ||
| 13 | } | ||
| 11 | } | 14 | } |