1
0
mirror of synced 2024-11-23 21:40:58 +01:00
bananatools/kizunahook/config.c
2024-10-06 20:44:49 +02:00

38 lines
873 B
C

#include <assert.h>
#include <stddef.h>
#include "kizunahook/config.h"
#include "platform/config.h"
void kizuna_dll_config_load(
struct kizuna_dll_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
GetPrivateProfileStringW(
L"kizunaio",
L"path",
L"",
cfg->path,
_countof(cfg->path),
filename);
}
void kizuna_hook_config_load(
struct kizuna_hook_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
aime_config_load(&cfg->aime, filename);
platform_config_load(&cfg->platform, filename);
kizuna_dll_config_load(&cfg->dll, filename);
gfx_config_load(&cfg->gfx, filename);
usio_config_load(&cfg->usio, filename);
vfd_config_load(&cfg->vfd, filename);
}