Attempt to decompile strtol

This commit is contained in:
Ryan Dwyer
2021-01-30 23:35:56 +10:00
parent 36f092e775
commit a4819ebe65
4 changed files with 109 additions and 7 deletions
+3 -3
View File
@@ -54,7 +54,7 @@ void gfxInitMemory(void)
s32 gfx;
s32 gfxtra = 0;
gfx = func00013408(argFindByPrefix(1, "-mgfx"), NULL, 0) * 1024;
gfx = strtol(argFindByPrefix(1, "-mgfx"), NULL, 0) * 1024;
if (argFindByPrefix(1, "-mgfxtra")) {
// ******** Extra specified but are we in the correct game mode I wonder???\n
@@ -64,7 +64,7 @@ void gfxInitMemory(void)
// ******** If you try and run hi-res then\n
// ******** you're gonna shafted up the arse\n
// ******** so don't blame me\n
gfxtra = func00013408(argFindByPrefix(1, "-mgfxtra"), NULL, 0) * 1024;
gfxtra = strtol(argFindByPrefix(1, "-mgfxtra"), NULL, 0) * 1024;
} else {
// ******** No we're not so there\n
}
@@ -78,7 +78,7 @@ void gfxInitMemory(void)
if (argFindByPrefix(1, "-mvtx")) {
// Argument specified mtxvtx_size\n
g_VtxSizesByPlayerCount[PLAYERCOUNT() - 1] = func00013408(argFindByPrefix(1, "-mvtx"), NULL, 0) * 1024;
g_VtxSizesByPlayerCount[PLAYERCOUNT() - 1] = strtol(argFindByPrefix(1, "-mvtx"), NULL, 0) * 1024;
}
// %d Players : Allocating %d bytes for master dl's\n