1
0
mirror of synced 2024-11-30 16:24:27 +01:00
bananatools/tekkenio/config.c
Kevin Trocolli cd10a98dcc tekken: fix io
platform: add gethostbyname hook
2023-11-12 05:13:44 -05:00

24 lines
1.1 KiB
C

#include <windows.h>
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
#include "tekkenio/config.h"
void tekken_io_najv4_config_load(struct tekken_najv4_config *cfg, const wchar_t *filename)
{
cfg->test = GetPrivateProfileIntW(L"najv4", L"test", VK_HOME, filename);
cfg->service = GetPrivateProfileIntW(L"najv4", L"service", VK_DELETE, filename);
cfg->coin = GetPrivateProfileIntW(L"najv4", L"coin", VK_INSERT, filename);
cfg->up = GetPrivateProfileIntW(L"najv4", L"up", VK_UP, filename);
cfg->down = GetPrivateProfileIntW(L"najv4", L"down", VK_DOWN, filename);
cfg->left = GetPrivateProfileIntW(L"najv4", L"left", VK_LEFT, filename);
cfg->right = GetPrivateProfileIntW(L"najv4", L"right", VK_RIGHT, filename);
cfg->start = GetPrivateProfileIntW(L"najv4", L"start", VK_SPACE, filename);
cfg->p1b1 = GetPrivateProfileIntW(L"najv4", L"p1b1", '1', filename);
cfg->p1b2 = GetPrivateProfileIntW(L"najv4", L"p1b2", '2', filename);
cfg->p1b3 = GetPrivateProfileIntW(L"najv4", L"p1b3", '3', filename);
cfg->p1b4 = GetPrivateProfileIntW(L"najv4", L"p1b4", '4', filename);
}