mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-11-15 01:27:36 +01:00
01be6ee33c
Thanks @domeori https://dev.s-ul.net/domeori/segatools/-/tree/mr-imports
23 lines
520 B
C
23 lines
520 B
C
#include <windows.h>
|
|
|
|
#include <assert.h>
|
|
#include <stddef.h>
|
|
#include <stdio.h>
|
|
|
|
#include "cmio/config.h"
|
|
|
|
void cm_io_config_load(
|
|
struct cm_io_config *cfg,
|
|
const wchar_t *filename)
|
|
{
|
|
wchar_t key[16];
|
|
int i;
|
|
|
|
assert(cfg != NULL);
|
|
assert(filename != NULL);
|
|
|
|
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);
|
|
}
|