mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 07:39:56 -06:00
get some connection infrastructure going...
This commit is contained in:
@ -320,6 +320,7 @@ void EmuThread::run()
|
||||
|
||||
IPC::InitSema();
|
||||
IPC::SetMPRecvTimeout(Config::MPRecvTimeout);
|
||||
LAN::Init();
|
||||
Netplay::Init();
|
||||
|
||||
NDS::Init();
|
||||
@ -364,7 +365,10 @@ void EmuThread::run()
|
||||
|
||||
while (EmuRunning != emuStatus_Exit)
|
||||
{
|
||||
if (Netplay::Active) Netplay::ProcessFrame();
|
||||
if (LAN::Active)
|
||||
LAN::Process();
|
||||
else if (Netplay::Active)
|
||||
Netplay::ProcessFrame();
|
||||
|
||||
IPC::ProcessCommands();
|
||||
|
||||
@ -673,6 +677,7 @@ void EmuThread::run()
|
||||
GPU::DeInitRenderer();
|
||||
NDS::DeInit();
|
||||
Netplay::DeInit();
|
||||
LAN::DeInit();
|
||||
IPC::DeInitSema();
|
||||
//Platform::LAN_DeInit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user