17 lines
334 B
C
17 lines
334 B
C
|
#include <windows.h>
|
||
|
|
||
|
#include <assert.h>
|
||
|
#include <stdbool.h>
|
||
|
#include <stddef.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#include "board/config.h"
|
||
|
|
||
|
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);
|
||
|
}
|