From 9b825e1c7a825329d3cd573e4bfdc0891677010d Mon Sep 17 00:00:00 2001 From: Sour Date: Sun, 22 Dec 2019 17:57:11 -0500 Subject: [PATCH] Tests: Fixed callback definition --- TestHelper/TestHelper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TestHelper/TestHelper.cpp b/TestHelper/TestHelper.cpp index 2fbe65c4..c1cb931d 100644 --- a/TestHelper/TestHelper.cpp +++ b/TestHelper/TestHelper.cpp @@ -27,7 +27,7 @@ using namespace std; -typedef void (__stdcall *NotificationListenerCallback)(ConsoleNotificationType); +typedef void (__stdcall *NotificationListenerCallback)(int, void*); extern "C" { void __stdcall InitDll(); @@ -59,10 +59,10 @@ void RunEmu() } } -void __stdcall OnNotificationReceived(ConsoleNotificationType type) +void __stdcall OnNotificationReceived(int type, void* parameter) { static int count = 0; - if(type == ConsoleNotificationType::GameLoaded) { + if(type == (int)ConsoleNotificationType::GameLoaded) { count++; if(count % 2 == 0) { //GameLoaded is fired twice because of how the test roms are coded, we want to start running the test on the 2nd time only