Tests: Fixed callback definition

This commit is contained in:
Sour 2019-12-22 17:57:11 -05:00
parent ec4a215d0b
commit 9b825e1c7a

View file

@ -27,7 +27,7 @@
using namespace std; using namespace std;
typedef void (__stdcall *NotificationListenerCallback)(ConsoleNotificationType); typedef void (__stdcall *NotificationListenerCallback)(int, void*);
extern "C" { extern "C" {
void __stdcall InitDll(); 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; static int count = 0;
if(type == ConsoleNotificationType::GameLoaded) { if(type == (int)ConsoleNotificationType::GameLoaded) {
count++; count++;
if(count % 2 == 0) { 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 //GameLoaded is fired twice because of how the test roms are coded, we want to start running the test on the 2nd time only