Files

35 lines
738 B
C

#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include "gchook/config.h"
#include "platform/config.h"
void gc_dll_config_load(
struct gc_dll_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
GetPrivateProfileStringW(
L"gcio",
L"path",
L"",
cfg->path,
_countof(cfg->path),
filename);
}
void gc_hook_config_load(
struct gc_hook_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
idmac_config_load(&cfg->idmac, filename);
platform_config_load(&cfg->platform, filename);
gc_dll_config_load(&cfg->dll, filename);
}