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"
|
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
|
|
|
}
|