Split networking code into its own target (#2091)

This commit is contained in:
Jesse Talavera
2024-07-14 11:03:21 -04:00
committed by GitHub
parent a812a43bda
commit 94ba7c1594
213 changed files with 159 additions and 108 deletions

View File

@ -274,7 +274,12 @@ int main(int argc, char** argv)
}
LocalMP::Init();
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());
}
createEmuInstance();