taitools/ll3hook/config.c

34 lines
721 B
C
Raw Normal View History

2024-02-17 21:46:23 +00:00
#include <assert.h>
#include <stddef.h>
#include "ll3hook/config.h"
#include "platform/config.h"
void ll3_dll_config_load(
struct ll3_dll_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
GetPrivateProfileStringW(
L"ll3io",
L"path",
L"",
cfg->path,
_countof(cfg->path),
filename);
}
void ll3_hook_config_load(
struct ll3_hook_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
platform_config_load(&cfg->platform, filename);
ll3_dll_config_load(&cfg->dll, filename);
gfx_config_load(&cfg->gfx, filename);
}