2019-10-19 21:03:17 +00:00
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#include "hooklib/config.h"
|
2019-11-06 00:31:51 +00:00
|
|
|
#include "hooklib/gfx.h"
|
2019-10-19 21:03:17 +00:00
|
|
|
|
|
|
|
void gfx_config_load(struct gfx_config *cfg, const wchar_t *filename)
|
|
|
|
{
|
|
|
|
assert(cfg != NULL);
|
|
|
|
assert(filename != NULL);
|
|
|
|
|
|
|
|
cfg->enable = GetPrivateProfileIntW(L"gfx", L"enable", 1, filename);
|
|
|
|
cfg->windowed = GetPrivateProfileIntW(L"gfx", L"windowed", 0, filename);
|
|
|
|
cfg->framed = GetPrivateProfileIntW(L"gfx", L"framed", 1, filename);
|
2020-05-19 20:09:38 +00:00
|
|
|
cfg->monitor = GetPrivateProfileIntW(L"gfx", L"monitor", 0, filename);
|
2019-10-19 21:03:17 +00:00
|
|
|
}
|