Load and bind chuniio at runtime

This commit is contained in:
Tau
2021-05-31 12:58:22 -04:00
parent ef8c844403
commit 01cfc4e48f
9 changed files with 207 additions and 13 deletions

View File

@ -18,6 +18,22 @@
#include "platform/config.h"
#include "platform/platform.h"
void chuni_dll_config_load(
struct chuni_dll_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
GetPrivateProfileStringW(
L"chuniio",
L"path",
L"",
cfg->path,
_countof(cfg->path),
filename);
}
void slider_config_load(struct slider_config *cfg, const wchar_t *filename)
{
assert(cfg != NULL);
@ -39,5 +55,6 @@ void chuni_hook_config_load(
amex_config_load(&cfg->amex, filename);
aime_config_load(&cfg->aime, filename);
gfx_config_load(&cfg->gfx, filename);
chuni_dll_config_load(&cfg->dll, filename);
slider_config_load(&cfg->slider, filename);
}