- added object deserialization. It seems to work, at least the stuff I sampled looked like it was properly reatored and it triggers no error condition.

- always make the top level object randomaccess when opening a JSON file for reading. Some things won't work right if this is opened for sequential access.
This commit is contained in:
Christoph Oelckers 2016-09-23 00:45:41 +02:00
commit c17da32dbd
8 changed files with 149 additions and 28 deletions

View file

@ -242,7 +242,7 @@ void DLoadSaveMenu::ReadSaveStrings ()
}
void *data = info->CacheLump();
FSerializer arc;
if (arc.OpenReader((const char *)data, info->LumpSize, true))
if (arc.OpenReader((const char *)data, info->LumpSize))
{
int savever = 0;
FString engine;
@ -537,7 +537,7 @@ void DLoadSaveMenu::ExtractSaveData (int index)
}
void *data = info->CacheLump();
FSerializer arc;
if (arc.OpenReader((const char *)data, info->LumpSize, true))
if (arc.OpenReader((const char *)data, info->LumpSize))
{
FString time, pcomment, comment;