all repos — mgba @ a09bb6d51ad83085f1c4e04a30a19a744a83c749

mGBA Game Boy Advance Emulator

Detect basic desync in rr
Jeffrey Pfau jeffrey@endrift.com
Sun, 03 Aug 2014 19:47:02 -0700
commit

a09bb6d51ad83085f1c4e04a30a19a744a83c749

parent

4534574f509f2fa1b1bf3af008921e3a11283a20

1 files changed, 3 insertions(+), 0 deletions(-)

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

@@ -213,6 +213,9 @@ _emitTag(rr, rr->movieStream, TAG_FRAME);

rr->inputThisFrame = false; } else { + if (rr->peekedTag == TAG_INPUT) { + GBALog(0, GBA_LOG_WARN, "RR desync detected!"); + } if (!_seekTag(rr, rr->movieStream, TAG_FRAME)) { uint32_t endStreamId = rr->streamId; GBARRStopPlaying(rr);