1
0
mirror of synced 2024-12-17 22:55:52 +01:00
bananatools/kizunahook/config.c
2024-10-04 03:09:51 -04:00

38 lines
881 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);
bpreader_config_load(&cfg->reader, filename);
usio_config_load(&cfg->usio, filename);
}