mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-02-20 02:07:02 +03:00
Fix CRT calling conventions
This commit is contained in:
parent
5d22c39db6
commit
149af27b9c
1 changed files with 4 additions and 4 deletions
|
|
@ -12,13 +12,13 @@ treatment from the compiler and linker.
|
|||
int main();
|
||||
|
||||
|
||||
void __stdcall mainCRTStartup ();
|
||||
static DWORD _mainXapiStartup(LPVOID lpThreadParameter);
|
||||
void __cdecl mainCRTStartup ();
|
||||
static DWORD __stdcall mainXapiStartup(LPVOID lpThreadParameter);
|
||||
|
||||
|
||||
// Address: 0x00148023
|
||||
// Matching: no
|
||||
void __stdcall mainCRTStartup() {
|
||||
void __cdecl mainCRTStartup() {
|
||||
/* The true entrypoint of the game, spawning a thread for the rest to run in
|
||||
The linker automatically sets this function to the entrypoint.
|
||||
*/
|
||||
|
|
@ -26,7 +26,7 @@ The linker automatically sets this function to the entrypoint.
|
|||
|
||||
// Address: 0x00147FB4
|
||||
// Matching: no
|
||||
DWORD _mainXapiStartup(LPVOID const lpThreadParameter) {
|
||||
DWORD __stdcall mainXapiStartup(LPVOID const lpThreadParameter) {
|
||||
/* Runs some initialization and then calls main() */
|
||||
main();
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue