FGO: fix printer hook always being enabled (#60)

that moment when the printer says OK but it absolutely isn't supposed to be OK lmao

edit: I'm not sure why the msvc commits are also in all of these PRs, they have no effect though...
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/60
Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
pull/65/head
kyoubate-haruka 2025-03-09 16:05:03 +00:00 committed by Dniel97
parent 369fe28687
commit 70c3e2fe0f
1 changed files with 4 additions and 2 deletions

View File

@ -82,8 +82,10 @@ static DWORD CALLBACK fgo_pre_startup(void)
/* Hook external DLL APIs */
printer_hook_init(&fgo_hook_cfg.printer, 4, fgo_hook_mod);
dll_hook_push(fgo_hook_mod, L"C330Ausb.dll");
dll_hook_push(fgo_hook_mod, L"C330AFWDLusb.dll");
if (fgo_hook_cfg.printer.enable) {
dll_hook_push(fgo_hook_mod, L"C330Ausb.dll");
dll_hook_push(fgo_hook_mod, L"C330AFWDLusb.dll");
}
/* Initialize emulation hooks */