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

@ -4,6 +4,7 @@
#include "board/config.h"
#include "hooklib/config.h"
#include "hooklib/dvd.h"
#include "hooklib/gfx.h"
#include "mu3hook/config.h"
@ -35,6 +36,7 @@ void mu3_hook_config_load(
platform_config_load(&cfg->platform, filename);
aime_config_load(&cfg->aime, filename);
dvd_config_load(&cfg->dvd, filename);
gfx_config_load(&cfg->gfx, filename);
mu3_dll_config_load(&cfg->dll, filename);
}

View File

@ -4,6 +4,7 @@
#include "board/config.h"
#include "hooklib/dvd.h"
#include "hooklib/gfx.h"
#include "mu3hook/mu3-dll.h"
@ -13,6 +14,7 @@
struct mu3_hook_config {
struct platform_config platform;
struct aime_config aime;
struct dvd_config dvd;
struct gfx_config gfx;
struct mu3_dll_config dll;
};

View File

@ -8,6 +8,7 @@
#include "hook/process.h"
#include "hooklib/dvd.h"
#include "hooklib/serial.h"
#include "hooklib/spike.h"
@ -36,6 +37,7 @@ static DWORD CALLBACK mu3_pre_startup(void)
/* Hook Win32 APIs */
dvd_hook_init(&mu3_hook_cfg.dvd, mu3_hook_mod);
gfx_hook_init(&mu3_hook_cfg.gfx, mu3_hook_mod);
serial_hook_init();