rpcsx/rpcs3/main_application.h

30 lines
551 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);
2021-04-07 23:05:18 +02:00
void SetActiveUser(const std::string& user)
2021-04-02 00:54:32 +02:00
{
m_active_user = user;
}
2019-06-18 04:02:06 +02:00
protected:
virtual QThread* get_thread() = 0;
2023-01-21 00:53:49 +01:00
void OnEmuSettingsChange();
2019-06-18 04:02:06 +02:00
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.
};