mirror of https://github.com/stenzek/duckstation
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
686 B
C++
29 lines
686 B
C++
|
6 years ago
|
#include "YBaseLib/Log.h"
|
||
|
|
#include "mainwindow.h"
|
||
|
|
#include "qthostinterface.h"
|
||
|
|
#include <QtWidgets/QApplication>
|
||
|
|
#include <memory>
|
||
|
|
|
||
|
|
static void InitLogging()
|
||
|
|
{
|
||
|
|
// set log flags
|
||
|
|
// g_pLog->SetConsoleOutputParams(true);
|
||
|
|
g_pLog->SetConsoleOutputParams(true, nullptr, LOGLEVEL_PROFILE);
|
||
|
|
g_pLog->SetFilterLevel(LOGLEVEL_PROFILE);
|
||
|
|
// g_pLog->SetDebugOutputParams(true);
|
||
|
|
}
|
||
|
|
|
||
|
|
int main(int argc, char* argv[])
|
||
|
|
{
|
||
|
|
InitLogging();
|
||
|
|
|
||
|
|
QApplication app(argc, argv);
|
||
|
|
|
||
|
|
std::unique_ptr<QtHostInterface> host_interface = std::make_unique<QtHostInterface>();
|
||
|
|
|
||
|
|
std::unique_ptr<MainWindow> window = std::make_unique<MainWindow>(host_interface.get());
|
||
|
|
window->show();
|
||
|
|
|
||
|
|
return app.exec();
|
||
|
|
}
|