From f893e2928c47b8c0e3fcd19ab7739cf290b3de48 Mon Sep 17 00:00:00 2001 From: Exzap <13877693+Exzap@users.noreply.github.com> Date: Sat, 21 Mar 2026 12:25:46 +0100 Subject: [PATCH] GX2: Fix return type of GX2DrawDone --- src/Cafe/OS/libs/gx2/GX2_Event.cpp | 4 ++-- src/Cafe/OS/libs/gx2/GX2_Event.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cafe/OS/libs/gx2/GX2_Event.cpp b/src/Cafe/OS/libs/gx2/GX2_Event.cpp index 645f0a79..3bb8e6a2 100644 --- a/src/Cafe/OS/libs/gx2/GX2_Event.cpp +++ b/src/Cafe/OS/libs/gx2/GX2_Event.cpp @@ -214,7 +214,7 @@ namespace GX2 __OSUnlockScheduler(); } - void GX2DrawDone() + bool GX2DrawDone() { // optional force full sync (texture readback and occlusion queries) bool forceFullSync = false; @@ -231,7 +231,7 @@ namespace GX2 GX2Command_Flush(0x100, true); uint64 ts = GX2GetLastSubmittedTimeStamp(); - GX2WaitTimeStamp(ts); + return GX2WaitTimeStamp(ts); } void GX2Init_event() diff --git a/src/Cafe/OS/libs/gx2/GX2_Event.h b/src/Cafe/OS/libs/gx2/GX2_Event.h index 09cb073c..8795aaa3 100644 --- a/src/Cafe/OS/libs/gx2/GX2_Event.h +++ b/src/Cafe/OS/libs/gx2/GX2_Event.h @@ -8,7 +8,7 @@ namespace GX2 void GX2EventInit(); void GX2WaitForVsync(); void GX2WaitForFlip(); - void GX2DrawDone(); + bool GX2DrawDone(); enum class GX2CallbackEventType {