Decouple emulator and frontend code

This commit is contained in:
offtkp 2023-10-18 01:12:59 +03:00
parent ab83fc1e71
commit fb0a2a6801
8 changed files with 411 additions and 364 deletions

View file

@ -1,5 +1,7 @@
#pragma once
#include <SDL.h>
#include <QApplication>
#include <QComboBox>
#include <QMenuBar>
@ -37,6 +39,9 @@ class MainWindow : public QMainWindow {
QComboBox* themeSelect = nullptr;
QMenuBar* menuBar = nullptr;
SDL_GameController* gameController = nullptr;
int gameControllerID;
Theme currentTheme;
void setTheme(Theme theme);
void swapEmuBuffer();