rpcsx/rpcs3/main_application.h

28 lines
514 B
C
Raw Normal View History

2020-12-05 13:08:24 +01:00
#pragma once
2019-06-18 04:02:06 +02:00
2020-02-22 20:42:49 +01:00
#include <string>
2019-06-18 04:02:06 +02:00
#include <QWindow>
struct EmuCallbacks;
2019-06-18 04:02:06 +02:00
class main_application
{
public:
virtual bool Init() = 0;
2019-06-18 04:02:06 +02:00
2021-04-02 00:54:32 +02:00
static void InitializeEmulator(const std::string& user, bool show_gui);
void SetActiveUser(std::string user)
{
m_active_user = user;
}
2019-06-18 04:02:06 +02:00
protected:
virtual QThread* get_thread() = 0;
EmuCallbacks CreateCallbacks();
2021-04-02 00:54:32 +02:00
std::string m_active_user;
2019-06-18 04:02:06 +02:00
QWindow* m_game_window = nullptr; // (Currently) only needed so that pad handlers have a valid target for event filtering.
};