upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:10:09 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:10:09 -0500
commit00f9ebd672301f72333920bed39d4dbbb248ac7b (patch)
tree109e751b15cad89f56cc81619a151892e13b0b96 /runtime/src/main.cpp
parent5063e9cd803889b48b37c83ffd922763b324984c (diff)
parent4edfb2418d51ca40cdb086214cd4ffe95fce27ac (diff)
Merge pull request #2070 from jaybeebabageyus
Diffstat (limited to 'runtime/src/main.cpp')
-rw-r--r--runtime/src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp
index 7bc2d78ab..24a06c10d 100644
--- a/runtime/src/main.cpp
+++ b/runtime/src/main.cpp
@@ -141,6 +141,8 @@ int wmain(int argc, wchar_t** argv) {
141 std::fflush(stderr); 141 std::fflush(stderr);
142 // Not `return`: a normal host exit runs the CRT's atexit table, which the game shares with gta6rt (its 142 // Not `return`: a normal host exit runs the CRT's atexit table, which the game shares with gta6rt (its
143 // handlers would run against a game that has stopped) and whose last word decides the exit status. 143 // handlers would run against a game that has stopped) and whose last word decides the exit status.
144 // ExitProcess also skips atexit, so the TLS clone cleanup registered there is run here instead.
145 rt::cleanup_tls_clones();
144 ExitProcess(static_cast<UINT>(code)); 146 ExitProcess(static_cast<UINT>(code));
145 } catch (const std::exception& e) { 147 } catch (const std::exception& e) {
146 std::fprintf(stderr, "error: %s\n", e.what()); 148 std::fprintf(stderr, "error: %s\n", e.what());