ekt: fix doing too much search+replace

This commit is contained in:
2025-09-02 18:09:17 +02:00
committed by Dniel97
parent 837b0663aa
commit 0480a7e767
2 changed files with 7 additions and 7 deletions

View File

@ -18,6 +18,6 @@ y3io_lib = static_library(
'y3.c',
'y3.h',
'impl/dummy/y3io.c',
'impl/dummy/y3io.h',
'impl/y3io.h',
],
)

View File

@ -59,14 +59,14 @@ void ekt_io_config_load(
assert(cfg != NULL);
assert(filename != NULL);
cfg->vk_test = GetPrivateProfileIntW(L"keyboard", L"test", '1', filename);
cfg->vk_service = GetPrivateProfileIntW(L"keyboard", L"service", '2', filename);
cfg->vk_coin = GetPrivateProfileIntW(L"keyboard", L"coin", '3', filename);
cfg->vk_sw1 = GetPrivateProfileIntW(L"keyboard", L"sw1", '4', filename);
cfg->vk_sw2 = GetPrivateProfileIntW(L"keyboard", L"sw2", '5', filename);
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);
cfg->vk_sw1 = GetPrivateProfileIntW(L"io4", L"sw1", '4', filename);
cfg->vk_sw2 = GetPrivateProfileIntW(L"io4", L"sw2", '5', filename);
GetPrivateProfileStringW(
L"keyboard",
L"io4",
L"mode",
L"keyboard",
cfg->mode,