1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2025-01-09 23:41:35 +01:00

23 lines
712 B
C
Raw Normal View History

2022-12-11 17:01:51 -05:00
#include <windows.h>
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
#include "cxbio/config.h"
void cxb_io_config_load(
struct cxb_io_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
cfg->test = GetPrivateProfileIntW(L"revio", L"test", '1', filename);
cfg->service = GetPrivateProfileIntW(L"revio", L"service", '2', filename);
cfg->coin = GetPrivateProfileIntW(L"revio", L"coin", '3', filename);
cfg->cancel = GetPrivateProfileIntW(L"revio", L"cancel", '4', filename);
cfg->up = GetPrivateProfileIntW(L"revio", L"up", VK_UP, filename);
cfg->down = GetPrivateProfileIntW(L"revio", L"down", VK_DOWN, filename);
}