1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

add better object read error logging

This commit is contained in:
Ted John
2016-07-01 21:01:06 +01:00
parent 6b353346b9
commit 8ce9a66286
29 changed files with 209 additions and 107 deletions

View File

@@ -29,7 +29,7 @@ enum OBJ_STRING_ID
OBJ_STRING_ID_NAME,
};
void FootpathObject::ReadLegacy(IStream * stream)
void FootpathObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
{
_legacyType.string_idx = stream->ReadValue<rct_string_id>();
_legacyType.image = stream->ReadValue<uint32>();
@@ -39,8 +39,8 @@ void FootpathObject::ReadLegacy(IStream * stream)
_legacyType.scrolling_mode = stream->ReadValue<uint8>();
stream->Seek(1, STREAM_SEEK_CURRENT);
GetStringTable()->Read(stream, OBJ_STRING_ID_NAME);
GetImageTable()->Read(stream);
GetStringTable()->Read(context, stream, OBJ_STRING_ID_NAME);
GetImageTable()->Read(context, stream);
}
void FootpathObject::Load()