Tiny source tweaks

Fixing some errors in the C runtime and making the main() formatting
more similar to everything else.
This commit is contained in:
KeybadeBlox 2026-02-14 23:12:06 -05:00
parent 84c165a0af
commit d81bd646fa
2 changed files with 6 additions and 5 deletions

View file

@ -14,8 +14,8 @@ Game * g_game;
// Address: 0x0006F9E0 // Address: 0x0006F9E0
// Matching: yes // Matching: yes
void main(void) { void main(void) {
g_game = new Game(NULL, 0); g_game = new Game(NULL, 0);
g_game->initRootExecObj(); g_game->initRootExecObj();
g_game->mainLoop(); g_game->mainLoop();
delete g_game; delete g_game;
} }

View file

@ -4,7 +4,7 @@ Like other CRT code, there's some magic here with symbols that get special
treatment from the compiler and linker. 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 // 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) { DWORD _mainXapiStartup(LPVOID const lpThreadParameter) {
/* Runs some initialization and then calls main() */ /* Runs some initialization and then calls main() */
main(); main();
return 0;
} }