mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(event): use ExitProcess() to actually exit on Windows, exit() doesn't work
This commit is contained in:
parent
b9b5a06067
commit
5c75a80a15
1 changed files with 8 additions and 0 deletions
|
|
@ -3,9 +3,17 @@
|
||||||
#include "event/Queue.hpp"
|
#include "event/Queue.hpp"
|
||||||
#include <common/Time.hpp>
|
#include <common/Time.hpp>
|
||||||
|
|
||||||
|
#if defined(WHOA_SYSTEM_WIN)
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
void SynthesizeDestroy(EvtContext* context) {
|
void SynthesizeDestroy(EvtContext* context) {
|
||||||
// TODO
|
// TODO
|
||||||
|
#if defined(WHOA_SYSTEM_WIN)
|
||||||
|
ExitProcess(0);
|
||||||
|
#else
|
||||||
exit(0);
|
exit(0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void SynthesizeIdle(EvtContext* context, uint32_t currTime, float elapsedSec) {
|
void SynthesizeIdle(EvtContext* context, uint32_t currTime, float elapsedSec) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue