Merge branch 'port' into port-debugger

This commit is contained in:
fgsfds committed 2023-10-16 23:20:03 +02:00
commit ac46cf80aa
13 files changed
+303 -53

No files matched your search

+12
View File
@@ -102,6 +102,9 @@ u32 var8005cea4 = 0;
OSScMsg g_SchedRspMsg = {OS_SC_RSP_MSG};
bool g_SchedIsFirstTask = true;
s32 g_PrevFrameFb = -1;
s32 g_PrevFrameCapTimer = -1;
void schedSetCrashEnable1(bool enable)
{
g_SchedCrashEnable1 = enable;
@@ -176,6 +179,8 @@ void osCreateScheduler(OSSched *sc, OSThread *thread, u8 mode, u32 numFields)
osViSetEvent(&sc->interruptQ, (OSMesg)VIDEO_MSG, numFields);
schedInitCrashLastRendered();
g_PrevFrameFb = videoCreateFramebuffer(0, 0, false, true);
}
void osScAddClient(OSSched *sc, OSScClient *c, OSMesgQueue *msgQ, bool is30fps)
@@ -386,6 +391,13 @@ void schedConsiderScreenshot(void)
g_MenuData.screenshottimer = 0;
}
if (g_PrevFrameCapTimer == 0) {
videoCopyFramebuffer(g_PrevFrameFb, 0, -1, -1);
g_PrevFrameCapTimer = -1;
} else if (g_PrevFrameCapTimer > 0) {
--g_PrevFrameCapTimer;
}
if (g_MenuData.screenshottimer >= 2) {
g_MenuData.screenshottimer--;
}