Tests: Fixed callback definition
This commit is contained in:
parent
ec4a215d0b
commit
9b825e1c7a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue