get some connection infrastructure going...

This commit is contained in:
Arisotura
2023-09-03 12:59:24 +02:00
parent affeb6a0e1
commit c148b77360
4 changed files with 373 additions and 14 deletions

View File

@ -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();
}