34 lines
721 B
C
34 lines
721 B
C
#include <assert.h>
|
|
#include <stddef.h>
|
|
|
|
#include "ll3hook/config.h"
|
|
|
|
#include "platform/config.h"
|
|
|
|
void ll3_dll_config_load(
|
|
struct ll3_dll_config *cfg,
|
|
const wchar_t *filename)
|
|
{
|
|
assert(cfg != NULL);
|
|
assert(filename != NULL);
|
|
|
|
GetPrivateProfileStringW(
|
|
L"ll3io",
|
|
L"path",
|
|
L"",
|
|
cfg->path,
|
|
_countof(cfg->path),
|
|
filename);
|
|
}
|
|
|
|
void ll3_hook_config_load(
|
|
struct ll3_hook_config *cfg,
|
|
const wchar_t *filename)
|
|
{
|
|
assert(cfg != NULL);
|
|
assert(filename != NULL);
|
|
|
|
platform_config_load(&cfg->platform, filename);
|
|
ll3_dll_config_load(&cfg->dll, filename);
|
|
gfx_config_load(&cfg->gfx, filename);
|
|
} |