From 364267ba66f92b50888779740bb36215cdde4e89 Mon Sep 17 00:00:00 2001 From: Tau Date: Sat, 4 May 2019 12:04:53 -0400 Subject: [PATCH] Use amex_hook_init() --- chunihook/dllmain.c | 12 ++---------- divahook/dllmain.c | 12 ++---------- idzhook/dllmain.c | 12 ++---------- 3 files changed, 6 insertions(+), 30 deletions(-) diff --git a/chunihook/dllmain.c b/chunihook/dllmain.c index 8c4113c..6f2dc89 100644 --- a/chunihook/dllmain.c +++ b/chunihook/dllmain.c @@ -3,11 +3,7 @@ #include #include -#include "amex/ds.h" -#include "amex/eeprom.h" -#include "amex/gpio.h" -#include "amex/jvs.h" -#include "amex/sram.h" +#include "amex/amex.h" #include "chunihook/jvs.h" #include "chunihook/slider.h" @@ -57,11 +53,7 @@ static DWORD CALLBACK chuni_pre_startup(void) /* Initialize AMEX emulation */ - ds_hook_init(); - gpio_hook_init(); - eeprom_hook_init(); - jvs_hook_init(); - sram_hook_init(); + amex_hook_init(); /* Initialize Chunithm board emulation */ diff --git a/divahook/dllmain.c b/divahook/dllmain.c index 3db34b6..53bc9f1 100644 --- a/divahook/dllmain.c +++ b/divahook/dllmain.c @@ -3,11 +3,7 @@ #include #include -#include "amex/ds.h" -#include "amex/eeprom.h" -#include "amex/gpio.h" -#include "amex/jvs.h" -#include "amex/sram.h" +#include "amex/amex.h" #include "board/sg-reader.h" @@ -44,11 +40,7 @@ static DWORD CALLBACK diva_pre_startup(void) /* Initialize AMEX emulation */ - ds_hook_init(); - eeprom_hook_init(); - gpio_hook_init(); - jvs_hook_init(); - sram_hook_init(); + amex_hook_init(); /* Initialize Project Diva I/O board emulation */ diff --git a/idzhook/dllmain.c b/idzhook/dllmain.c index 5b8baff..e806c4c 100644 --- a/idzhook/dllmain.c +++ b/idzhook/dllmain.c @@ -3,11 +3,7 @@ #include #include -#include "amex/ds.h" -#include "amex/eeprom.h" -#include "amex/gpio.h" -#include "amex/jvs.h" -#include "amex/sram.h" +#include "amex/amex.h" #include "board/sg-reader.h" @@ -43,11 +39,7 @@ static DWORD CALLBACK idz_pre_startup(void) /* Initialize AMEX emulation */ - ds_hook_init(); - eeprom_hook_init(); - gpio_hook_init(); - jvs_hook_init(); - sram_hook_init(); + amex_hook_init(); /* Initialize Initial D Zero I/O board emulation */