提交 fc82588f 编写于 作者: qianshanzangxue's avatar qianshanzangxue

上传新文件

上级 31fabc2d
#include <QApplication>
#include <SingleApplication>
#include "common/YDHelper.h"
#include "common/YDLogger.h"
#include "common/YDPluginManager.h"
#include "common/YDProjectManage.h"
#include "mainwindow.h"
#ifdef Q_OS_WIN
#include "breakpad/client/windows/handler/exception_handler.h"
bool callback(const wchar_t *dump_path, const wchar_t *id, void *context,
EXCEPTION_POINTERS *exinfo, MDRawAssertionInfo *assertion,
bool succeeded) {
Q_UNUSED(dump_path);
Q_UNUSED(id);
Q_UNUSED(context);
Q_UNUSED(exinfo);
Q_UNUSED(assertion);
return succeeded;
}
#endif
int main(int argc, char *argv[]) {
#ifdef Q_OS_WIN
google_breakpad::ExceptionHandler eh(
L".", NULL, callback, NULL,
google_breakpad::ExceptionHandler::HANDLER_ALL);
#endif
SingleApplication a(argc, argv);
YDHelper ydhelper;
Q_UNUSED(ydhelper);
// YDLogger ydlogger;
// Q_UNUSED(ydlogger);
YDPluginManager ydpluginManager;
Q_UNUSED(ydpluginManager);
YDProjectManage ydproject;
Q_UNUSED(ydproject);
MainWindow w;
w.showMaximized();
return a.exec();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册