GE Debugger: Prevent double init.

If you were mashing record, it was possible to add two inits to the
recording, which caused playback issues.
This commit is contained in:
Unknown W. Brackets 2022-12-18 14:53:11 -08:00
parent 710e63814f
commit 860be93c0c

View File

@ -780,7 +780,7 @@ void NotifyDisplay(u32 framebuf, int stride, int fmt) {
if (active && HasDrawCommands()) {
writePending = true;
}
if (nextFrame && (gstate_c.skipDrawReason & SKIPDRAW_SKIPFRAME) == 0) {
if (!active && nextFrame && (gstate_c.skipDrawReason & SKIPDRAW_SKIPFRAME) == 0) {
NOTICE_LOG(SYSTEM, "Recording starting on display...");
BeginRecording();
}
@ -835,7 +835,7 @@ void NotifyBeginFrame() {
FinishRecording();
}
if (nextFrame && (gstate_c.skipDrawReason & SKIPDRAW_SKIPFRAME) == 0 && noDisplayAction) {
if (!active && nextFrame && (gstate_c.skipDrawReason & SKIPDRAW_SKIPFRAME) == 0 && noDisplayAction) {
NOTICE_LOG(SYSTEM, "Recording starting on frame...");
BeginRecording();
// If we began on a BeginFrame, end on a BeginFrame.