implemented simple crash handler

This commit is contained in:
itsmattkc
2020-02-28 13:21:32 +11:00
parent d1681bc294
commit c32ed5955c
8 changed files with 251 additions and 1 deletions
+4
View File
@@ -35,11 +35,15 @@ extern "C" {
#include <QSurfaceFormat>
#include "core.h"
#include "common/crashhandler.h"
#include "common/debug.h"
int main(int argc, char *argv[]) {
av_log_set_level(AV_LOG_QUIET);
signal(SIGSEGV, crash_handler);
signal(SIGABRT, crash_handler);
// Set OpenGL display profile (3.2 Core)
QSurfaceFormat format;
format.setVersion(3, 2);