18 Commits
Author SHA1 Message Date
Dniel97 af88b8f06e bump capnhook 2026-08-10 17:47:49 +02:00
kyoubate-haruka d29a3926ab apm: Fix distribution server handling, abaas log symlinks, add extra buttons for dinput (#123)
Requires https://gitea.tendokyu.moe/TeamTofuShop/capnhook/pulls/8

This adds the following:

1. Fixes `am::abaas::FileSearchSuite::isAvailableAbsolutePath: Line259  ERROR: folder is unavailable (Y:\SDEM\log\\SDFU)` by hooking `DeviceIoControl` with `FSCTL_SET_REPARSE_POINT`.

Sega decided to use the most bizzare way possible of creating symbolic links. These are created in the AbaaS log directory inside SDEM and point to the appdata directories for the sub-games.

Magic numbers have been taken from amdaemon decompilation. That whole API is very sparsely documented on the Microsoft side.

2. Fixes distribution server settings not applying.

Unlike most other games, the daemon config files do not have dipswitch filters in them. Instead the distribution setting is determined by running `hwvalue.exe` twice and checking it's exit code. This has been added to `launch.bat` and requires the linked addition for inject.

3. Implemented `get_opbtns` and added extra buttons for dinput.

* `get_opbtns` existed but was never implemented. Added the ability to bind dinput buttons for test/service.
* DirectInput is weird. The controller I'm using is sending directional keys as buttons rather than a D-Pad, so I was unable to bind it. These extra directional buttons can be bound in addition to the bindings that exist for a D-Pad.

4. Fixes audio in Rolling Gunner by setting the CWD to the root of the C:\ drive before starting a game.

lol. lmao even.

5. Add a `DefineDosDevice` for Y:\ to fix Blazblue crashing

They hardcoded the damn path to appdata instead of retrieving it from the apm.dll...

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/123
Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
2026-07-19 08:25:54 +00:00
Dniel97 0b81ea38dd bump capnhook rev 2026-03-09 21:13:27 +01:00
Dniel97 ce77d60905 mai2: fix memory leak and high CPU usage 2025-12-21 18:58:01 +01:00
Dniel97 6fe8744b0f common: add OpenSSL patch comments, bump capnhook 2025-10-12 12:42:06 +02:00
Hay1tsme 1d63ab24d3 Move capnhook to TeamTofuShop fork, update revision 2025-02-09 04:52:27 -05:00
Hay1tsme 2f54183636 bump capnhook rev 2025-02-04 11:09:23 -05:00
Hay1tsme 4c20deb60a bump capnhook ver 2025-01-27 02:09:14 -05:00
GEEKiDoS c80f903cf8 Fix build with Microsoft Visual C++, Fix gfxhook and felica issue (#48)
I just wanna say that It is a SHAME that a Windows ONLY project was not able to build without MINGW
Also where's the missing `3mpxsc.h` in diva hook?

This also fixes the window size issue from hook_CreateWindowExA in gfxhook
And Fixes felica issue as described in #45

Reviewed-on: https://gitea.tendokyu.moe/Dniel97/segatools/pulls/48
Reviewed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe>
Co-authored-by: GEEKiDoS <geek_ds@foxmail.com>
Co-committed-by: GEEKiDoS <geek_ds@foxmail.com>
2024-11-11 16:28:24 +00:00
Dniel97 66317a0054 bump capnhook rev to include serial fixes 2024-10-11 07:32:22 +02:00
Dniel97 517469a60c switched to new capnhook, updated unityhook, added LED 15093 to MU3 2024-05-12 19:37:30 +02:00
Tau 7ee74214f7 subprojects: Bump Capnhook dependency 2019-11-03 11:02:46 -05:00
Tau eaeda09030 Bump capnhook dependency 2019-10-19 15:47:47 -04:00
Tau 8491aa1fec subprojects: Bump pre-release Capnhook dep
Pull in hr_to_win32_error()
2019-09-04 13:47:31 -04:00
Tau a3aa3ed92a subprojects: Bump capnhook dependency
Upstream has been updated slightly to deal with newer Meson.
2019-05-01 21:16:51 -04:00
Tau 458bf5b3de subprojects: Bump capnhook dep
Use a pre-release commit of capnhook that lets us hook HID.DLL
without getting blown up by apisets.
2019-03-15 22:17:00 -04:00
Tau 0bd8be6610 Bump capnhook dependency 2018-11-23 14:37:35 -05:00
Tau ab2d64b7af Set up Meson build system 2018-11-20 20:33:17 -05:00