1
0
mirror of synced 2024-12-02 17:07:17 +01:00
bananatools/tekkenhook/config.c

36 lines
793 B
C
Raw Normal View History

2023-09-18 10:15:27 +02:00
#include <assert.h>
#include <stddef.h>
#include "tekkenhook/config.h"
#include "platform/config.h"
void tekken_dll_config_load(
struct tekken_dll_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
GetPrivateProfileStringW(
L"tekkenio",
L"path",
L"",
cfg->path,
_countof(cfg->path),
filename);
}
void tekken_hook_config_load(
struct tekken_hook_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
platform_config_load(&cfg->platform, filename);
tekken_dll_config_load(&cfg->dll, filename);
gfx_config_load(&cfg->gfx, filename);
bpreader_config_load(&cfg->reader, filename);
}