mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
30 lines
551 B
C++
30 lines
551 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <QWindow>
|
|
|
|
struct EmuCallbacks;
|
|
|
|
class main_application
|
|
{
|
|
public:
|
|
virtual bool Init() = 0;
|
|
|
|
static void InitializeEmulator(const std::string& user, bool show_gui);
|
|
|
|
void SetActiveUser(const std::string& user)
|
|
{
|
|
m_active_user = user;
|
|
}
|
|
|
|
protected:
|
|
virtual QThread* get_thread() = 0;
|
|
|
|
void OnEmuSettingsChange();
|
|
|
|
EmuCallbacks CreateCallbacks();
|
|
|
|
std::string m_active_user;
|
|
QWindow* m_game_window = nullptr; // (Currently) only needed so that pad handlers have a valid target for event filtering.
|
|
};
|