mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Add md5 testing to netplay
Allows to test current game, an arbitrary game or the sdcard of all players at once.
This commit is contained in:
@ -14,12 +14,13 @@
|
||||
#include "Core/NetPlayServer.h"
|
||||
|
||||
class CGameListCtrl;
|
||||
class MD5Dialog;
|
||||
class wxButton;
|
||||
class wxCheckBox;
|
||||
class wxChoice;
|
||||
class wxListBox;
|
||||
class wxString;
|
||||
class wxStaticText;
|
||||
class wxString;
|
||||
class wxTextCtrl;
|
||||
|
||||
enum
|
||||
@ -27,6 +28,9 @@ enum
|
||||
NP_GUI_EVT_CHANGE_GAME = 45,
|
||||
NP_GUI_EVT_START_GAME,
|
||||
NP_GUI_EVT_STOP_GAME,
|
||||
NP_GUI_EVT_DISPLAY_MD5_DIALOG,
|
||||
NP_GUI_EVT_MD5_PROGRESS,
|
||||
NP_GUI_EVT_MD5_RESULT,
|
||||
};
|
||||
|
||||
enum
|
||||
@ -34,6 +38,14 @@ enum
|
||||
INITIAL_PAD_BUFFER_SIZE = 5
|
||||
};
|
||||
|
||||
// IDs are UI-dependent here
|
||||
enum class MD5Target
|
||||
{
|
||||
CurrentGame = 1,
|
||||
OtherGame = 2,
|
||||
SdCard = 3
|
||||
};
|
||||
|
||||
class NetPlayDialog : public wxFrame, public NetPlayUI
|
||||
{
|
||||
public:
|
||||
@ -52,6 +64,11 @@ public:
|
||||
void Update() override;
|
||||
void AppendChat(const std::string& msg) override;
|
||||
|
||||
void ShowMD5Dialog(const std::string& file_identifier) override;
|
||||
void SetMD5Progress(int pid, int progress) override;
|
||||
void SetMD5Result(int pid, const std::string& result) override;
|
||||
void AbortMD5() override;
|
||||
|
||||
void OnMsgChangeGame(const std::string& filename) override;
|
||||
void OnMsgStartGame() override;
|
||||
void OnMsgStopGame() override;
|
||||
@ -68,6 +85,7 @@ private:
|
||||
void OnQuit(wxCommandEvent& event);
|
||||
void OnThread(wxThreadEvent& event);
|
||||
void OnChangeGame(wxCommandEvent& event);
|
||||
void OnMD5ComputeRequested(wxCommandEvent& event);
|
||||
void OnAdjustBuffer(wxCommandEvent& event);
|
||||
void OnAssignPads(wxCommandEvent& event);
|
||||
void OnKick(wxCommandEvent& event);
|
||||
@ -94,6 +112,8 @@ private:
|
||||
wxStaticText* m_host_label;
|
||||
wxChoice* m_host_type_choice;
|
||||
wxButton* m_host_copy_btn;
|
||||
wxChoice* m_MD5_choice;
|
||||
MD5Dialog* m_MD5_dialog = nullptr;
|
||||
bool m_host_copy_btn_is_retry;
|
||||
bool m_is_hosting;
|
||||
|
||||
|
Reference in New Issue
Block a user