[Qt] Add file picker

This commit is contained in:
wheremyfoodat 2023-10-02 00:59:14 +03:00
parent 061c80fd11
commit c648b6c62d
2 changed files with 51 additions and 9 deletions

View file

@ -7,6 +7,7 @@
#include <QtWidgets>
#include <atomic>
#include <thread>
#include <filesystem>
#include "emulator.hpp"
#include "panda_qt/screen.hpp"
@ -26,6 +27,8 @@ class MainWindow : public QMainWindow {
std::thread emuThread;
std::atomic<bool> appRunning = true; // Is the application itself running?
std::atomic<bool> needToLoadROM = false;
std::filesystem::path romToLoad = "";
ScreenWidget screen;
QComboBox* themeSelect = nullptr;
@ -34,6 +37,8 @@ class MainWindow : public QMainWindow {
Theme currentTheme;
void setTheme(Theme theme);
void swapEmuBuffer();
void emuThreadMainLoop();
void selectROM();
// Tracks whether we are using an OpenGL-backed renderer or a Vulkan-backed renderer
bool usingGL = false;