From d81bd646faccafc6ac999488cdc9fd8c0be3c3f2 Mon Sep 17 00:00:00 2001 From: KeybadeBlox Date: Sat, 14 Feb 2026 23:12:06 -0500 Subject: [PATCH] Tiny source tweaks Fixing some errors in the C runtime and making the main() formatting more similar to everything else. --- decompile/src/JSRF/Jet2.cpp | 8 ++++---- decompile/src/XDK/CRT/CRT0.cpp | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/decompile/src/JSRF/Jet2.cpp b/decompile/src/JSRF/Jet2.cpp index 86f6f30..470c144 100644 --- a/decompile/src/JSRF/Jet2.cpp +++ b/decompile/src/JSRF/Jet2.cpp @@ -14,8 +14,8 @@ Game * g_game; // Address: 0x0006F9E0 // Matching: yes void main(void) { - g_game = new Game(NULL, 0); - g_game->initRootExecObj(); - g_game->mainLoop(); - delete g_game; + g_game = new Game(NULL, 0); + g_game->initRootExecObj(); + g_game->mainLoop(); + delete g_game; } diff --git a/decompile/src/XDK/CRT/CRT0.cpp b/decompile/src/XDK/CRT/CRT0.cpp index 349b67f..c305130 100644 --- a/decompile/src/XDK/CRT/CRT0.cpp +++ b/decompile/src/XDK/CRT/CRT0.cpp @@ -4,7 +4,7 @@ Like other CRT code, there's some magic here with symbols that get special treatment from the compiler and linker. */ -#include "Win32.hpp" +#include "../Win32.hpp" // Every program is supposed to have a main(), so we can just assume its @@ -29,4 +29,5 @@ The linker automatically sets this function to the entrypoint. DWORD _mainXapiStartup(LPVOID const lpThreadParameter) { /* Runs some initialization and then calls main() */ main(); + return 0; }