add half-working CXB support

This commit is contained in:
2022-12-11 17:01:51 -05:00
committed by Hay1tsme
parent 60eddedccf
commit edd85ee818
25 changed files with 1082 additions and 0 deletions

22
cxbio/config.c Normal file
View File

@ -0,0 +1,22 @@
#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);
}