board/io4.c: add configuration section to enable/disable emulation

This commit is contained in:
2020-10-07 17:26:12 +00:00
parent e677a1b4f3
commit cd5ae172b8
9 changed files with 36 additions and 6 deletions

View File

@ -31,3 +31,11 @@ void aime_config_load(struct aime_config *cfg, const wchar_t *filename)
aime_dll_config_load(&cfg->dll, filename);
cfg->enable = GetPrivateProfileIntW(L"aime", L"enable", 1, filename);
}
void io4_config_load(struct io4_config *cfg, const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
cfg->enable = GetPrivateProfileIntW(L"io4", L"enable", 1, filename);
}