mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-13 06:15:07 +01:00
require HOOK_CPU definition in cpuhook.c
This commit is contained in:
parent
b24541938a
commit
e4d2e04f48
@ -2,6 +2,8 @@
|
||||
* Genesis Plus GX
|
||||
* CPU hooking support
|
||||
*
|
||||
* HOOK_CPU should be defined in a makefile or MSVC project to enable this functionality
|
||||
*
|
||||
* Copyright feos (2019)
|
||||
*
|
||||
* Redistribution and use of this code or any derivative works are permitted
|
||||
@ -36,6 +38,8 @@
|
||||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifdef HOOK_CPU
|
||||
|
||||
#include <stdio.h>
|
||||
#include "cpuhook.h"
|
||||
|
||||
@ -44,4 +48,6 @@ void(*cpu_hook)(hook_type_t type, int width, unsigned int address, unsigned int
|
||||
void set_cpu_hook(void(*hook)(hook_type_t type, int width, unsigned int address, unsigned int value))
|
||||
{
|
||||
cpu_hook = hook;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* HOOK_CPU */
|
@ -2,6 +2,8 @@
|
||||
* Genesis Plus GX
|
||||
* CPU hooking support
|
||||
*
|
||||
* HOOK_CPU should be defined in a makefile or MSVC project to enable this functionality
|
||||
*
|
||||
* Copyright DrMefistO (2018-2019)
|
||||
*
|
||||
* Copyright feos (2019)
|
||||
|
Loading…
Reference in New Issue
Block a user