diff options
author | Forkk <forkk@forkk.net> | 2014-05-09 17:33:32 -0500 |
---|---|---|
committer | Forkk <forkk@forkk.net> | 2014-05-09 17:33:32 -0500 |
commit | 93ae21abfcce1c6b36e5cd68d23045f2b9ac438d (patch) | |
tree | b89d027023688d5d9e9665160d74188c9ae4c39c /main.cpp | |
parent | cf616efb5da6240db80a810f96abd8e8325ff3c9 (diff) | |
download | MultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.tar MultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.tar.gz MultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.tar.lz MultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.tar.xz MultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.zip |
Implement crash handling on Linux
This will allow us to generate crash dumps and have users report
crashes.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,6 +1,12 @@ #include "MultiMC.h" #include "gui/MainWindow.h" +// Crash handling +#ifdef HANDLE_SEGV +#include <HandleCrash.h> +#endif + + int main_gui(MultiMC &app) { // show main window @@ -23,6 +29,11 @@ int main(int argc, char *argv[]) Q_INIT_RESOURCE(multimc); Q_INIT_RESOURCE(backgrounds); +#ifdef HANDLE_SEGV + // Register signal handler for generating crash reports. + initBlackMagic(); +#endif + switch (app.status()) { case MultiMC::Initialized: |