add GetMSCount/GetUSCount to Platform. remove SDL dependency from LAN.

This commit is contained in:
Arisotura
2024-08-08 17:42:21 +02:00
parent fc5628bbc2
commit e0f40cd2d1
5 changed files with 29 additions and 20 deletions

View File

@ -73,7 +73,6 @@ using namespace melonDS;
QString* systemThemeName;
QString emuDirectory;
const int kMaxEmuInstances = 16;
@ -86,6 +85,9 @@ std::optional<LibPCap> pcap;
Net net;
QElapsedTimer sysTimer;
void NetInit()
{
Config::Table cfg = Config::GetGlobalTable();
@ -237,6 +239,7 @@ bool MelonApplication::event(QEvent *event)
int main(int argc, char** argv)
{
sysTimer.start();
srand(time(nullptr));
for (int i = 0; i < kMaxEmuInstances; i++)