diff --git a/src/main.cpp b/src/main.cpp index e24d4744..9356a257 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,15 @@ #include "emulator.hpp" +#ifdef PANDA3DS_FRONTEND_QT +#include +#endif int main(int argc, char *argv[]) { Emulator emu; +#ifdef PANDA3DS_FRONTEND_QT + QApplication app(argc, argv); + return app.exec(); +#endif + emu.initGraphicsContext(); if (argc > 1) {