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>
|
2020-02-15 23:36:20 +01:00
|
|
|
|
|
|
|
|
struct EmuCallbacks;
|
2019-06-18 04:02:06 +02:00
|
|
|
|
|
|
|
|
class main_application
|
|
|
|
|
{
|
|
|
|
|
public:
|
2019-09-08 18:27:36 +02:00
|
|
|
virtual void Init() = 0;
|
2019-06-18 04:02:06 +02:00
|
|
|
|
2019-12-03 08:32:28 +01:00
|
|
|
static bool InitializeEmulator(const std::string& user, bool force_init, bool show_gui);
|
2019-06-18 04:02:06 +02:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual QThread* get_thread() = 0;
|
|
|
|
|
|
|
|
|
|
EmuCallbacks CreateCallbacks();
|
|
|
|
|
|
|
|
|
|
QWindow* m_game_window = nullptr; // (Currently) only needed so that pad handlers have a valid target for event filtering.
|
|
|
|
|
};
|