diff options
author | Alec Murphy <alec@checksum.fail> | 2021-07-05 11:44:50 -0400 |
---|---|---|
committer | Alec Murphy <alec@checksum.fail> | 2021-07-05 11:44:50 -0400 |
commit | 583048aadae930ae294e3967ac535e5baedd14fc (patch) | |
tree | af40b1ec2f0aff5f96f11b4f0a41e90001669de7 | |
parent | 176fa56c301c90cc984c694517ed7da4b6036561 (diff) |
Allow to quit to TempleOS
-rw-r--r-- | Lib/LibC.HC | 2 | ||||
-rw-r--r-- | Lib/SDL2.HC | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Lib/LibC.HC b/Lib/LibC.HC index d2d314c..5bb7eee 100644 --- a/Lib/LibC.HC +++ b/Lib/LibC.HC @@ -300,7 +300,7 @@ U0 fwrite() { Bool @isatty(I64 fd) { no_warn fd; - return TRUE; + return FALSE; } U0 isatty() { diff --git a/Lib/SDL2.HC b/Lib/SDL2.HC index a8af610..c8bbc0b 100644 --- a/Lib/SDL2.HC +++ b/Lib/SDL2.HC @@ -482,3 +482,9 @@ U0 SDL_WM_SetCaption() { debug_print("called: SDL_WM_SetCaption('%s', 0x%08x)\n", p0, p1); POP_SYSV_REGS } + +U0 SDL_QuitSubSystem() { + TG_Exit; + PaletteSetStd; + _exit(); +}
\ No newline at end of file |