mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
27 lines
490 B
C++
27 lines
490 B
C++
#pragma once
|
|
#include <QThread>
|
|
#include "input/input_state.h"
|
|
|
|
class QtEmuGL;
|
|
|
|
class EmuThread : public QThread
|
|
{
|
|
public:
|
|
|
|
EmuThread() : running(false) {}
|
|
void init(QtEmuGL* _glw, InputState* inputState);
|
|
void run();
|
|
void FinalShutdown();
|
|
void setRunning(bool value);
|
|
public slots:
|
|
void Shutdown();
|
|
private:
|
|
QtEmuGL* glw;
|
|
InputState* input_state;
|
|
bool running;
|
|
};
|
|
|
|
void EmuThread_Start(const char *filename, QtEmuGL* glWindow);
|
|
void EmuThread_Stop();
|
|
|
|
char *GetCurrentFilename();
|