1
0
mirror of synced 2024-11-27 23:10:49 +01:00
bananatools/saohook/config.c
Kevin Trocolli 8ff356b84c add games
2023-09-18 04:05:22 -04:00

39 lines
861 B
C

#include <assert.h>
#include <stddef.h>
#include "saohook/config.h"
#include "platform/config.h"
void sao_dll_config_load(
struct sao_dll_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
GetPrivateProfileStringW(
L"saoio",
L"path",
L"",
cfg->path,
_countof(cfg->path),
filename);
}
void sao_hook_config_load(
struct sao_hook_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
platform_config_load(&cfg->platform, filename);
sao_dll_config_load(&cfg->dll, filename);
gfx_config_load(&cfg->gfx, filename);
qr_config_load(&cfg->qr, filename);
bpreader_config_load(&cfg->reader, filename);
usio_config_load(&cfg->usio, filename);
}