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.
This commit is contained in:
bunnei 2021-04-13 18:38:10 -07:00
parent 12a343ed8d
commit c6c0771b12
7 changed files with 28 additions and 2 deletions

View file

@ -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();
}
}