Decompile mapGlobalVariablesLoad

This commit is contained in:
Alexander Batalov 2022-09-15 18:17:16 +03:00
parent 1d05bac7a1
commit d72a74f6c3
1 changed files with 15 additions and 1 deletions

View File

@ -52,6 +52,7 @@ static void isoWindowRefreshRectGame(Rect* rect);
static void isoWindowRefreshRectMapper(Rect* rect);
static int mapGlobalVariablesInit(int count);
static void mapGlobalVariablesFree();
static int mapGlobalVariablesLoad(File* stream);
static void mapLocalVariablesFree();
static void _map_place_dude_and_mouse();
static void _square_reset();
@ -827,7 +828,8 @@ static int mapLoad(File* stream)
}
error = "Error loading global vars";
if (fileReadInt32List(stream, gMapGlobalVars, gMapGlobalVarsLength) != 0) {
// NOTE: Uninline.
if (mapGlobalVariablesLoad(stream) != 0) {
goto err;
}
@ -1525,6 +1527,18 @@ static void mapGlobalVariablesFree()
}
}
// NOTE: Inlined.
//
// 0x48405C
static int mapGlobalVariablesLoad(File* stream)
{
if (fileReadInt32List(stream, gMapGlobalVars, gMapGlobalVarsLength) != 0) {
return -1;
}
return 0;
}
// 0x4840D4
static void mapLocalVariablesFree()
{