all repos — mgba @ a4cd807b70992cdf11c9775087096b2faf7e993c

mGBA Game Boy Advance Emulator

Fix writing max strem ID in RR metadata
Jeffrey Pfau jeffrey@endrift.com
Thu, 07 Aug 2014 01:13:03 -0700
commit

a4cd807b70992cdf11c9775087096b2faf7e993c

parent

ba993980dc31841d02fcd994e88c524c78317019

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-rr.csrc/gba/gba-rr.c

@@ -147,8 +147,9 @@ _emitTag(rr, rr->metadataFile, TAG_INIT | initFrom);

rr->streamId = 0; rr->maxStreamId = 0; + _emitTag(rr, rr->metadataFile, TAG_MAX_STREAM); rr->maxStreamIdOffset = rr->metadataFile->seek(rr->metadataFile, 0, SEEK_CUR); - _emitTag(rr, rr->metadataFile, 1); + rr->metadataFile->write(rr->metadataFile, &rr->maxStreamId, sizeof(rr->maxStreamId)); return true; }