38 lines
873 B
C
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);
|
|
}
|