forked from TeamTofuShop/segatools
board/io4.c: add configuration section to enable/disable emulation
This commit is contained in:
@ -37,6 +37,7 @@ void mu3_hook_config_load(
|
||||
platform_config_load(&cfg->platform, filename);
|
||||
aime_config_load(&cfg->aime, filename);
|
||||
dvd_config_load(&cfg->dvd, filename);
|
||||
io4_config_load(&cfg->io4, filename);
|
||||
gfx_config_load(&cfg->gfx, filename);
|
||||
mu3_dll_config_load(&cfg->dll, filename);
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ struct mu3_hook_config {
|
||||
struct platform_config platform;
|
||||
struct aime_config aime;
|
||||
struct dvd_config dvd;
|
||||
struct io4_config io4;
|
||||
struct gfx_config gfx;
|
||||
struct mu3_dll_config dll;
|
||||
};
|
||||
|
@ -71,7 +71,7 @@ static DWORD CALLBACK mu3_pre_startup(void)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
hr = mu3_io4_hook_init();
|
||||
hr = mu3_io4_hook_init(&mu3_hook_cfg.io4);
|
||||
|
||||
if (FAILED(hr)) {
|
||||
goto fail;
|
||||
|
@ -16,13 +16,13 @@ static const struct io4_ops mu3_io4_ops = {
|
||||
.poll = mu3_io4_poll,
|
||||
};
|
||||
|
||||
HRESULT mu3_io4_hook_init(void)
|
||||
HRESULT mu3_io4_hook_init(const struct io4_config *cfg)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
||||
assert(mu3_dll.init != NULL);
|
||||
|
||||
hr = io4_hook_init(&mu3_io4_ops, NULL);
|
||||
hr = io4_hook_init(cfg, &mu3_io4_ops, NULL);
|
||||
|
||||
if (FAILED(hr)) {
|
||||
return hr;
|
||||
|
@ -2,4 +2,6 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
HRESULT mu3_io4_hook_init(void);
|
||||
#include "board/io4.h"
|
||||
|
||||
HRESULT mu3_io4_hook_init(const struct io4_config *cfg);
|
||||
|
Reference in New Issue
Block a user