forked from TeamTofuShop/segatools
hooklib/config.c: Add struct gfx_config
This commit is contained in:
17
hooklib/config.c
Normal file
17
hooklib/config.c
Normal file
@ -0,0 +1,17 @@
|
||||
#include <windows.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "hooklib/config.h"
|
||||
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user