mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
start moving ROM/firmware loading to the emuthread to avoid cursed bugs
This commit is contained in:
@ -68,15 +68,15 @@ public:
|
||||
|
||||
msg_InitGL,
|
||||
msg_DeInitGL,
|
||||
|
||||
msg_BootROM,
|
||||
msg_BootFirmware,
|
||||
};
|
||||
|
||||
struct Message
|
||||
{
|
||||
MessageType type;
|
||||
union
|
||||
{
|
||||
bool stopExternal;
|
||||
};
|
||||
QVariant param;
|
||||
};
|
||||
|
||||
void sendMessage(Message msg);
|
||||
@ -100,6 +100,9 @@ public:
|
||||
void emuFrameStep();
|
||||
void emuReset();
|
||||
|
||||
int bootROM(QStringList filename);
|
||||
int bootFirmware();
|
||||
|
||||
bool emuIsRunning();
|
||||
bool emuIsActive();
|
||||
|
||||
@ -153,6 +156,8 @@ private:
|
||||
constexpr static int emuPauseStackPauseThreshold = 1;
|
||||
int emuPauseStack;
|
||||
|
||||
int bootResult = 0;
|
||||
|
||||
QMutex msgMutex;
|
||||
QSemaphore msgSemaphore;
|
||||
QQueue<Message> msgQueue;
|
||||
|
Reference in New Issue
Block a user