Decompile mapLocalVariablesLoad

This commit is contained in:
Alexander Batalov 2022-09-15 18:22:27 +03:00
parent 0adc65054c
commit 108a20ef27
1 changed files with 15 additions and 1 deletions

View File

@ -55,6 +55,7 @@ static void mapGlobalVariablesFree();
static int mapGlobalVariablesLoad(File* stream);
static int mapLocalVariablesInit(int count);
static void mapLocalVariablesFree();
static int mapLocalVariablesLoad(File* stream);
static void _map_place_dude_and_mouse();
static void _square_reset();
static int _square_load(File* stream, int a2);
@ -841,7 +842,8 @@ static int mapLoad(File* stream)
}
error = "Error loading local vars";
if (fileReadInt32List(stream, gMapLocalVars, gMapLocalVarsLength) != 0) {
// NOTE: Uninline.
if (mapLocalVariablesLoad(stream) != 0) {
goto err;
}
@ -1564,6 +1566,18 @@ static void mapLocalVariablesFree()
}
}
// NOTE: Inlined.
//
// 0x4840F8
static int mapLocalVariablesLoad(File* stream)
{
if (fileReadInt32List(stream, gMapLocalVars, gMapLocalVarsLength) != 0) {
return -1;
}
return 0;
}
// 0x48411C
static void _map_place_dude_and_mouse()
{