Add dvd hook to allow hiding connected dvd drives

This commit is contained in:
6cb1008cabfc0d4485696f6df7431a5e27604e1b
2021-06-16 12:08:08 +02:00
parent 7123a9feff
commit 56a32fd80a
11 changed files with 124 additions and 1 deletions

View File

@ -6,6 +6,7 @@
#include "hooklib/config.h"
#include "hooklib/gfx.h"
#include "hooklib/dvd.h"
void gfx_config_load(struct gfx_config *cfg, const wchar_t *filename)
{
@ -17,3 +18,11 @@ void gfx_config_load(struct gfx_config *cfg, const wchar_t *filename)
cfg->framed = GetPrivateProfileIntW(L"gfx", L"framed", 1, filename);
cfg->monitor = GetPrivateProfileIntW(L"gfx", L"monitor", 0, filename);
}
void dvd_config_load(struct dvd_config *cfg, const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
cfg->enable = GetPrivateProfileIntW(L"dvd", L"enable", 1, filename);
}