From a4cd807b70992cdf11c9775087096b2faf7e993c Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 7 Aug 2014 01:13:03 -0700 Subject: [PATCH] Fix writing max strem ID in RR metadata --- src/gba/gba-rr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gba/gba-rr.c b/src/gba/gba-rr.c index f4985c21a..2300053ca 100644 --- a/src/gba/gba-rr.c +++ b/src/gba/gba-rr.c @@ -147,8 +147,9 @@ bool GBARRReinitStream(struct GBARRContext* rr, enum GBARRInitFrom 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; }