Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Tests: Fixed callback definition
Browse files Browse the repository at this point in the history
  • Loading branch information
SourMesen committed Dec 22, 2019
1 parent ec4a215 commit 9b825e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TestHelper/TestHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

using namespace std;

typedef void (__stdcall *NotificationListenerCallback)(ConsoleNotificationType);
typedef void (__stdcall *NotificationListenerCallback)(int, void*);

extern "C" {
void __stdcall InitDll();
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9b825e1

Please sign in to comment.