forked from Dniel97/segatools
cardhook: Use platform DNS hook
aimeReaderHost.exe talks to aimedb as well as the card reader.
This commit is contained in:
parent
a77e9efbed
commit
5c99ef1988
@ -10,20 +10,27 @@
|
|||||||
#include "hooklib/serial.h"
|
#include "hooklib/serial.h"
|
||||||
#include "hooklib/spike.h"
|
#include "hooklib/spike.h"
|
||||||
|
|
||||||
|
#include "platform/config.h"
|
||||||
|
#include "platform/dns.h"
|
||||||
|
|
||||||
#include "util/dprintf.h"
|
#include "util/dprintf.h"
|
||||||
|
|
||||||
// Emulating an AiMe reader is the only thing this hook DLL does
|
static struct aime_config app_aime_config;
|
||||||
static const struct aime_config app_aime_config = { .enable = true };
|
static struct dns_config app_dns_config;
|
||||||
static process_entry_t app_startup;
|
static process_entry_t app_startup;
|
||||||
|
|
||||||
static DWORD CALLBACK app_pre_startup(void)
|
static DWORD CALLBACK app_pre_startup(void)
|
||||||
{
|
{
|
||||||
dprintf("--- Begin %s ---\n", __func__);
|
dprintf("--- Begin %s ---\n", __func__);
|
||||||
|
|
||||||
spike_hook_init("cardspike.txt");
|
aime_config_load(&app_aime_config, L"segatools.ini");
|
||||||
|
dns_config_load(&app_dns_config, L"segatools.ini");
|
||||||
|
|
||||||
serial_hook_init();
|
serial_hook_init();
|
||||||
sg_reader_hook_init(&app_aime_config, 12);
|
sg_reader_hook_init(&app_aime_config, 12);
|
||||||
|
dns_platform_hook_init(&app_dns_config);
|
||||||
|
|
||||||
|
spike_hook_init("cardspike.txt");
|
||||||
|
|
||||||
dprintf("--- End %s ---\n", __func__);
|
dprintf("--- End %s ---\n", __func__);
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ shared_library(
|
|||||||
aimeio_dll,
|
aimeio_dll,
|
||||||
board_lib,
|
board_lib,
|
||||||
hooklib_lib,
|
hooklib_lib,
|
||||||
|
platform_lib,
|
||||||
util_lib,
|
util_lib,
|
||||||
],
|
],
|
||||||
sources : [
|
sources : [
|
||||||
|
Loading…
Reference in New Issue
Block a user