Uncomment the network loop code in main. (#431)

This commit is contained in:
Mark Klara 2021-11-11 23:36:15 -08:00 committed by GitHub
parent dd98ddea4e
commit 1c86790e04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,10 +62,9 @@ int main(void)
if (g_currentUId == 0)
g_currentUId = userIds.at(0);
// TODO: UNCOMMENT ME
// Thread networkThread;
// threadCreate(&networkThread, (ThreadFunc)networkLoop, nullptr, nullptr, 16 * 1000, 0x2C, -2);
// threadStart(&networkThread);
Thread networkThread;
threadCreate(&networkThread, (ThreadFunc)networkLoop, nullptr, nullptr, 16 * 1000, 0x2C, -2);
threadStart(&networkThread);
while (appletMainLoop()) {
padUpdate(&pad);
@ -83,11 +82,10 @@ int main(void)
SDLH_Render();
}
// TODO: uncomment me
// g_shouldExitNetworkLoop = true;
// threadWaitForExit(&networkThread);
// threadClose(&networkThread);
g_shouldExitNetworkLoop = true;
threadWaitForExit(&networkThread);
threadClose(&networkThread);
servicesExit();
exit(0);
}
}