mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Remove any wx-specific code from Core.
Move NetPlay code from DolphinWX to Core. Even NetPlay with nowx should be possible now if anyone felt like implementing a CLI for it ;) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7119 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -35,6 +35,8 @@
|
||||
|
||||
#include "FifoQueue.h"
|
||||
|
||||
#include "NetPlay.h"
|
||||
|
||||
enum
|
||||
{
|
||||
NP_GUI_EVT_CHANGE_GAME = 45,
|
||||
@ -62,7 +64,7 @@ private:
|
||||
const CGameListCtrl* const m_game_list;
|
||||
};
|
||||
|
||||
class NetPlayDiag : public wxFrame
|
||||
class NetPlayDiag : public wxFrame, public NetPlayUI
|
||||
{
|
||||
public:
|
||||
NetPlayDiag(wxWindow* const parent, const CGameListCtrl* const game_list
|
||||
@ -74,6 +76,17 @@ public:
|
||||
void OnStart(wxCommandEvent& event);
|
||||
void OnStop(wxCommandEvent& event);
|
||||
|
||||
// implementation of NetPlayUI methods
|
||||
void BootGame(const std::string& filename);
|
||||
void StopGame();
|
||||
|
||||
void Update();
|
||||
void AppendChat(const std::string& msg);
|
||||
|
||||
void OnMsgChangeGame(const std::string& filename);
|
||||
void OnMsgStartGame();
|
||||
void OnMsgStopGame();
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
|
Reference in New Issue
Block a user