Backport LAN (#2131)

backport the old LAN feature to the modern melonDS codebase.
This commit is contained in:
Arisotura
2024-08-10 23:20:50 +02:00
committed by GitHub
parent ec71b15505
commit 8d31875902
34 changed files with 4163 additions and 87 deletions

View File

@ -35,6 +35,7 @@
#include "Screen.h"
#include "Config.h"
#include "MPInterface.h"
class EmuInstance;
@ -125,6 +126,9 @@ public:
void osdAddMessage(unsigned int color, const char* msg);
// called when the MP interface is changed
void updateMPInterface(melonDS::MPInterfaceType type);
protected:
void keyPressEvent(QKeyEvent* event) override;
void keyReleaseEvent(QKeyEvent* event) override;
@ -167,6 +171,11 @@ private slots:
void onRAMInfo();
void onOpenTitleManager();
void onMPNewInstance();
void onLANStartHost();
void onLANStartClient();
void onNPStartHost();
void onNPStartClient();
void onNPTest();
void onOpenEmuSettings();
void onEmuSettingsDialogFinished(int res);
@ -232,6 +241,8 @@ private:
void createScreenPanel();
bool lanWarning(bool host);
bool showOSD;
bool hasOGL;
@ -279,6 +290,11 @@ public:
QAction* actRAMInfo;
QAction* actTitleManager;
QAction* actMPNewInstance;
QAction* actLANStartHost;
QAction* actLANStartClient;
QAction* actNPStartHost;
QAction* actNPStartClient;
QAction* actNPTest;
QAction* actEmuSettings;
#ifdef __APPLE__