2023-09-18 10:15:27 +02:00
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "tekkenio/config.h"
|
|
|
|
|
2024-06-18 06:28:58 +02:00
|
|
|
void tekken_io_najv4_config_load(struct tekken_jvs_config *cfg, const wchar_t *filename)
|
2023-09-18 10:15:27 +02:00
|
|
|
{
|
2024-06-18 06:28:58 +02:00
|
|
|
cfg->test = GetPrivateProfileIntW(L"jvs", L"test", VK_HOME, filename);
|
|
|
|
cfg->service = GetPrivateProfileIntW(L"jvs", L"service", VK_DELETE, filename);
|
|
|
|
cfg->coin = GetPrivateProfileIntW(L"jvs", L"coin", VK_INSERT, filename);
|
|
|
|
cfg->up = GetPrivateProfileIntW(L"jvs", L"up", VK_UP, filename);
|
|
|
|
cfg->down = GetPrivateProfileIntW(L"jvs", L"down", VK_DOWN, filename);
|
|
|
|
cfg->left = GetPrivateProfileIntW(L"jvs", L"left", VK_LEFT, filename);
|
|
|
|
cfg->right = GetPrivateProfileIntW(L"jvs", L"right", VK_RIGHT, filename);
|
|
|
|
cfg->start = GetPrivateProfileIntW(L"jvs", L"start", VK_SPACE, filename);
|
|
|
|
cfg->p1b1 = GetPrivateProfileIntW(L"jvs", L"p1b1", '1', filename);
|
|
|
|
cfg->p1b2 = GetPrivateProfileIntW(L"jvs", L"p1b2", '2', filename);
|
|
|
|
cfg->p1b3 = GetPrivateProfileIntW(L"jvs", L"p1b3", '3', filename);
|
|
|
|
cfg->p1b4 = GetPrivateProfileIntW(L"jvs", L"p1b4", '4', filename);
|
2023-09-18 10:15:27 +02:00
|
|
|
}
|