mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 15:19:53 -06:00
Split networking code into its own target (#2091)
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
#include "main.h"
|
||||
|
||||
#include "Net.h"
|
||||
#include "Net_PCap.h"
|
||||
|
||||
#include "WifiSettingsDialog.h"
|
||||
#include "ui_WifiSettingsDialog.h"
|
||||
@ -109,7 +110,10 @@ void WifiSettingsDialog::done(int r)
|
||||
}
|
||||
|
||||
Net_PCap::DeInit();
|
||||
Net::Init();
|
||||
Config::Table cfg = Config::GetGlobalTable();
|
||||
bool direct = cfg.GetBool("LAN.DirectMode");
|
||||
std::string devicename = cfg.GetString("LAN.Device");
|
||||
Net::Init(direct, devicename.c_str());
|
||||
|
||||
QDialog::done(r);
|
||||
|
||||
|
Reference in New Issue
Block a user