1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +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

@@ -28,7 +28,7 @@ enum OBJ_STRING_ID
OBJ_STRING_ID_NAME,
};
void FootpathItemObject::ReadLegacy(IStream * stream)
void FootpathItemObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
{
_legacyType.name = stream->ReadValue<rct_string_id>();
_legacyType.image = stream->ReadValue<uint32>();
@@ -38,11 +38,11 @@ void FootpathItemObject::ReadLegacy(IStream * stream)
_legacyType.path_bit.price = stream->ReadValue<sint16>();
_legacyType.path_bit.scenery_tab_id = stream->ReadValue<uint8>();
GetStringTable()->Read(stream, OBJ_STRING_ID_NAME);
GetStringTable()->Read(context, stream, OBJ_STRING_ID_NAME);
_sceneryTabEntry = stream->ReadValue<rct_object_entry>();
GetImageTable()->Read(stream);
GetImageTable()->Read(context, stream);
}
void FootpathItemObject::Load()