Split panda_sdl and panda_qt

This commit is contained in:
wheremyfoodat 2023-09-30 11:29:26 +03:00
parent f6634786c1
commit 63e939e98e
3 changed files with 22 additions and 13 deletions

12
src/panda_qt/main.cpp Normal file
View file

@ -0,0 +1,12 @@
#include <QApplication>
#include <QtWidgets>
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QWidget window;
window.resize(320, 240);
window.show();
window.setWindowTitle("Alber");
return app.exec();
}

View file

@ -1,15 +1,7 @@
#include "emulator.hpp"
#ifdef PANDA3DS_FRONTEND_QT
#include <QApplication>
#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) {