mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 04:49:14 +12:00
[Qt] Add file picker
This commit is contained in:
parent
061c80fd11
commit
c648b6c62d
2 changed files with 51 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue