2025-06-17 12:00:46 +08:00
|
|
|
#include <QCoreApplication>
|
2025-06-20 10:33:03 +08:00
|
|
|
#include <Util.h>
|
|
|
|
|
#include <crashelper.h>
|
2025-06-17 12:00:46 +08:00
|
|
|
|
|
|
|
|
#include "Console.h"
|
|
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
|
{
|
2025-06-20 10:33:03 +08:00
|
|
|
auto configDir = Util::GetCurConfigPath("frelay");
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
backward::SetDumpFileSavePath(configDir + "/dumpfile");
|
|
|
|
|
backward::SetDumpLogSavePath(configDir + "/dumplog");
|
|
|
|
|
#else
|
|
|
|
|
backward::SetDumpLogSavePath(configDir + QDir::separator() + "dumplog");
|
|
|
|
|
#endif
|
2025-06-17 12:00:46 +08:00
|
|
|
QCoreApplication app(argc, argv);
|
|
|
|
|
|
|
|
|
|
Util::InitLogger("frelayConsole.log", "frelayConsole");
|
|
|
|
|
qInstallMessageHandler(Util::ConsoleMsgHander);
|
|
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|