Port web_service from Citra

This commit is contained in:
fearlessTobi
2018-09-16 20:05:51 +02:00
parent 5f30f95e94
commit 4d139943f2
45 changed files with 1577 additions and 39 deletions

View File

@ -41,6 +41,10 @@ enum class EmulatedDirectoryTarget {
SDMC,
};
namespace DiscordRPC {
class DiscordInterface;
}
class GMainWindow : public QMainWindow {
Q_OBJECT
@ -61,6 +65,8 @@ public:
GMainWindow();
~GMainWindow() override;
std::unique_ptr<DiscordRPC::DiscordInterface> discord_rpc;
signals:
/**
@ -99,7 +105,8 @@ private:
void BootGame(const QString& filename);
void ShutdownGame();
void ShowCallouts();
void ShowTelemetryCallout();
void SetDiscordEnabled(bool state);
/**
* Stores the filename in the recently loaded files list.
@ -135,6 +142,7 @@ private slots:
void OnStartGame();
void OnPauseGame();
void OnStopGame();
void OnMenuReportCompatibility();
/// Called whenever a user selects a game in the game list widget.
void OnGameListLoadFile(QString game_path);
void OnGameListOpenFolder(u64 program_id, GameListOpenTarget target);