1
0
mirror of synced 2024-11-30 16:24:27 +01:00
bananatools/tekkenhook/config.c
Kevin Trocolli ea60cc4a18 add tekken
2023-09-18 04:15:27 -04:00

36 lines
793 B
C

#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);
}