Add Discord Join Net Play functionally

This commit is contained in:
Sleepy Flower Girl
2018-07-03 17:50:08 -04:00
parent 14e156c292
commit b7c241ea4c
9 changed files with 265 additions and 3 deletions

View File

@ -0,0 +1,30 @@
// Copyright 2018 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <thread>
#include <QObject>
#include "Common/Flag.h"
class DiscordHandler : public QObject
{
Q_OBJECT
public:
explicit DiscordHandler();
~DiscordHandler();
void Start();
void Stop();
void DiscordJoin();
signals:
void Join();
private:
void Run();
Common::Flag m_stop_requested;
std::thread m_thread;
};