added VFD toggle to config

This commit is contained in:
2024-02-06 12:34:11 +01:00
parent dae3018411
commit 451a7ec49d
33 changed files with 111 additions and 15 deletions

View File

@ -42,6 +42,7 @@ void swdc_hook_config_load(
zinput_config_load(&cfg->zinput, filename);
dvd_config_load(&cfg->dvd, filename);
io4_config_load(&cfg->io4, filename);
vfd_config_load(&cfg->vfd, filename);
}
void zinput_config_load(struct zinput_config *cfg, const wchar_t *filename)

View File

@ -17,6 +17,7 @@ struct swdc_hook_config {
struct aime_config aime;
struct dvd_config dvd;
struct io4_config io4;
struct vfd_config vfd;
struct swdc_dll_config dll;
struct zinput_config zinput;
};

View File

@ -64,7 +64,7 @@ static DWORD CALLBACK swdc_pre_startup(void)
goto fail;
}
hr = vfd_hook_init(4);
hr = vfd_hook_init(&swdc_hook_cfg.vfd, 4);
if (FAILED(hr)) {
return hr;