mirror of
https://github.com/BernardoGiordano/Checkpoint
synced 2024-11-24 09:43:02 +00:00
Uncomment the network loop code in main. (#431)
This commit is contained in:
parent
dd98ddea4e
commit
1c86790e04
1 changed files with 7 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue