mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add hack for X11 user which can have a crash when opening the first dialog and Gl is drawing. Remove the "open file" dialog automatic display on startup, very annoying.
34 lines
706 B
C++
34 lines
706 B
C++
#pragma once
|
|
#include <QThread>
|
|
#include <QMutex>
|
|
#include "input/input_state.h"
|
|
|
|
class QtEmuGL;
|
|
|
|
class EmuThread : public QThread
|
|
{
|
|
public:
|
|
EmuThread() : running(false), gameRunning(false), needInitGame(false), frames_(0) {}
|
|
void init(InputState* inputState);
|
|
void run();
|
|
void FinalShutdown();
|
|
void setRunning(bool value);
|
|
void startGame(QString filename);
|
|
void stopGame();
|
|
QMutex gameMutex;
|
|
public slots:
|
|
void Shutdown();
|
|
private:
|
|
InputState* input_state;
|
|
bool running;
|
|
bool gameRunning;
|
|
bool needInitGame;
|
|
int frames_;
|
|
|
|
};
|
|
|
|
void EmuThread_Start(QtEmuGL* w);
|
|
void EmuThread_Stop();
|
|
void EmuThread_StartGame(QString filename);
|
|
void EmuThread_StopGame();
|
|
void EmuThread_LockDraw(bool value);
|