mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 22:29:47 -06:00
get some of the shit going, I guess
atleast the emuthread is going and we have its control system down and other fun shit, too
This commit is contained in:
@ -19,8 +19,45 @@
|
||||
#ifndef MAIN_H
|
||||
#define MAIN_H
|
||||
|
||||
#include <QThread>
|
||||
#include <QWidget>
|
||||
#include <QMainWindow>
|
||||
|
||||
|
||||
class EmuThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
void run() override;
|
||||
|
||||
public:
|
||||
explicit EmuThread(QObject* parent = nullptr);
|
||||
|
||||
// to be called from the UI thread
|
||||
void emuRun();
|
||||
void emuPause(bool refresh);
|
||||
void emuUnpause();
|
||||
void emuStop();
|
||||
|
||||
private:
|
||||
volatile int EmuStatus;
|
||||
int PrevEmuStatus;
|
||||
int EmuRunning;
|
||||
};
|
||||
|
||||
|
||||
class MainWindowPanel : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainWindowPanel(QWidget* parent);
|
||||
~MainWindowPanel();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
};
|
||||
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -29,8 +66,11 @@ public:
|
||||
explicit MainWindow(QWidget* parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private slots:
|
||||
void onOpenFile();
|
||||
|
||||
private:
|
||||
// private shit goes here
|
||||
MainWindowPanel* panel;
|
||||
};
|
||||
|
||||
#endif // MAIN_H
|
||||
|
Reference in New Issue
Block a user