segatools/mu3io/config.c

23 lines
523 B
C
Raw Normal View History

2023-07-13 22:54:30 +00:00
#include <windows.h>
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
#include "mu3io/config.h"
void mu3_io_config_load(
struct mu3_io_config *cfg,
const wchar_t *filename)
{
wchar_t key[16];
int i;
assert(cfg != NULL);
assert(filename != NULL);
cfg->vk_test = GetPrivateProfileIntW(L"io4", L"test", '1', filename);
cfg->vk_service = GetPrivateProfileIntW(L"io4", L"service", '2', filename);
cfg->vk_coin = GetPrivateProfileIntW(L"io4", L"coin", '3', filename);
}