2024-10-04 09:09:51 +02:00
|
|
|
#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);
|
2024-10-06 20:37:20 +02:00
|
|
|
vfd_config_load(&cfg->vfd, filename);
|
2024-10-04 09:09:51 +02:00
|
|
|
}
|