2019-10-19 21:03:17 +00:00
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#include "hooklib/config.h"
|
2021-06-16 10:08:08 +00:00
|
|
|
#include "hooklib/dvd.h"
|
2021-10-25 09:16:14 +00:00
|
|
|
#include "hooklib/gfx/gfx.h"
|
2019-10-19 21:03:17 +00:00
|
|
|
|
2021-10-25 09:16:14 +00:00
|
|
|
void dvd_config_load(struct dvd_config *cfg, const wchar_t *filename)
|
2019-10-19 21:03:17 +00:00
|
|
|
{
|
|
|
|
assert(cfg != NULL);
|
|
|
|
assert(filename != NULL);
|
|
|
|
|
2021-10-25 09:16:14 +00:00
|
|
|
cfg->enable = GetPrivateProfileIntW(L"dvd", L"enable", 1, filename);
|
2019-10-19 21:03:17 +00:00
|
|
|
}
|
2021-06-16 10:08:08 +00:00
|
|
|
|
2021-10-25 09:16:14 +00:00
|
|
|
void gfx_config_load(struct gfx_config *cfg, const wchar_t *filename)
|
2021-06-16 10:08:08 +00:00
|
|
|
{
|
|
|
|
assert(cfg != NULL);
|
|
|
|
assert(filename != NULL);
|
|
|
|
|
2021-10-25 09:16:14 +00:00
|
|
|
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);
|
|
|
|
cfg->monitor = GetPrivateProfileIntW(L"gfx", L"monitor", 0, filename);
|
2021-06-16 10:08:08 +00:00
|
|
|
}
|