mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 11:30:09 +03:00
fix(event): use ExitProcess() to actually exit on Windows, exit() doesn't work
This commit is contained in:
parent
b9b5a06067
commit
5c75a80a15
@ -3,9 +3,17 @@
|
||||
#include "event/Queue.hpp"
|
||||
#include <common/Time.hpp>
|
||||
|
||||
#if defined(WHOA_SYSTEM_WIN)
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
void SynthesizeDestroy(EvtContext* context) {
|
||||
// TODO
|
||||
#if defined(WHOA_SYSTEM_WIN)
|
||||
ExitProcess(0);
|
||||
#else
|
||||
exit(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
void SynthesizeIdle(EvtContext* context, uint32_t currTime, float elapsedSec) {
|
||||
|
Loading…
Reference in New Issue
Block a user