1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00

Use crash catcher in launcher

This commit is contained in:
elsid 2021-12-20 20:40:04 +01:00
parent fbc84465c5
commit a21c17ab26
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -4,6 +4,8 @@
#include <QTextCodec>
#include <QDir>
#include <components/debug/debugging.hpp>
#ifdef MAC_OS_X_VERSION_MIN_REQUIRED
#undef MAC_OS_X_VERSION_MIN_REQUIRED
// We need to do this because of Qt: https://bugreports.qt-project.org/browse/QTBUG-22154
@ -12,7 +14,7 @@
#include "maindialog.hpp"
int main(int argc, char *argv[])
int runLauncher(int argc, char *argv[])
{
try
{
@ -49,3 +51,8 @@ int main(int argc, char *argv[])
return 0;
}
}
int main(int argc, char *argv[])
{
return wrapApplication(runLauncher, argc, argv, "Launcher");
}