Triforce v0.3.6

This commit is contained in:
ruckus7382sfgsgdf
2026-11-14 00:33:23 -06:00
parent 2f1e350320
commit a02bcb21a9
106 changed files with 7683 additions and 1422 deletions

View File

@@ -405,9 +405,11 @@ void ExitThread(DWORD code) {
pthread_exit(NULL);
}
void ExitProcess(UINT code) {
/* (at once, as Windows ends the other threads first: exit() would run static destructors under running threads) */
/* (at once, as Windows ends the other threads first: exit() would run static destructors under running threads.
quick_exit, not _exit: it runs what was registered with at_quick_exit and nothing else, and the renderer's
library registers its orderly-end marks there, as a DLL's atexit runs at Windows' ExitProcess) */
fflush(NULL);
_exit((int)code);
quick_exit((int)code);
}
BOOL TerminateProcess(HANDLE p, UINT code) { (void)p; ExitProcess(code); }