refactor/fix: Resolve some wmisc issues

> fix crashes around missing call convention/log hook
> enable wmisc for M39 as well, see #8
This commit is contained in:
[ ]
2026-01-11 21:11:55 +09:00
parent 26bc8fdda5
commit 244f4aa56a
4 changed files with 16 additions and 10 deletions
+9
View File
@@ -74,6 +74,8 @@
#include "hooks/lang.h"
#include "hooks/networkhook.h"
#include "hooks/unisintrhook.h"
#include "hooks/sndbhook.h"
#include "hooks/wmischook.h"
#include "launcher/launcher.h"
#include "launcher/logger.h"
#include "launcher/signal.h"
@@ -2077,6 +2079,10 @@ int main_implementation(int argc, char *argv[]) {
game->attach();
}
// wine fixes
hooks::wmisc::apply_performance_hacks(avs::game::DLL_INSTANCE, avs::game::MODEL, avs::game::EXT);
hooks::soundbank::init(avs::game::DLL_INSTANCE, avs::game::MODEL, avs::game::EXT);
#ifdef SPICE64
if (!cfg::CONFIGURATOR_STANDALONE) {
if (games::iidx::TDJ_CAMERA) {
@@ -2268,6 +2274,9 @@ int main_implementation(int argc, char *argv[]) {
// clear presence
richpresence::shutdown();
// cleanup wine fixes
hooks::soundbank::deinit(avs::game::DLL_INSTANCE);
// detach games
for (auto game : games) {
game->detach();