mirror of
https://github.com/libretro/Mesen.git
synced 2025-03-02 21:47:59 +00:00
Tests: Fixed callback definition
This commit is contained in:
parent
ec4a215d0b
commit
9b825e1c7a
@ -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…
x
Reference in New Issue
Block a user