feat: Add iidx soundbank hook

> mockup using MF decoder (which by itself is broken, it seems)
> working .s3p unpacking and .2dx packing
> use avs filesystem (read only)
> soundbank patching disabled (missing some logic)
> unity games may be broken (linker)
> related to #1
This commit is contained in:
[ ]
2025-05-22 23:53:19 +09:00
parent 8a5f1b5017
commit 933dcf72a9
4 changed files with 706 additions and 1 deletions
+7
View File
@@ -17,6 +17,7 @@
#endif
#include "hooks/setupapihook.h"
#include "hooks/sleephook.h"
#include "hooks/bmsbhook.h"
#include "launcher/options.h"
#include "touch/touch.h"
#include "misc/wintouchemu.h"
@@ -373,6 +374,10 @@ namespace games::iidx {
// init cfgmgr32 hooks
cfgmgr32hook_init(avs::game::DLL_INSTANCE);
// wine fixes
hooks::bmsb::init(avs::game::DLL_INSTANCE);
}
void IIDXGame::pre_attach() {
@@ -422,6 +427,8 @@ namespace games::iidx {
}
void IIDXGame::detach() {
hooks::bmsb::deinit(avs::game::DLL_INSTANCE);
Game::detach();
devicehook_dispose();