Commit Graph
887 Commits
Author SHA1 Message Date
Dniel97 363fb0f9e4 soul: test zinput hook 2026-02-02 21:21:31 +01:00
Dniel97 50067086bd soul: show touch cursor 2026-02-02 21:18:56 +01:00
Dniel97 6e3272d4bd soul: add xbox controller support, fix launch scripts and config 2026-02-02 20:33:50 +01:00
Wither OrNot cb1b1fe1ae soul: Fix touch 2026-02-02 13:51:56 -05:00
Wither OrNot 106d01acc1 soul: Add graphics hook 2026-01-29 19:04:53 -05:00
Wither OrNotandDniel97 7ab2439955 soul: Add initial code by Dniel97
Co-authored-by: Dniel97 <Dniel97@noreply.gitea.tendokyu.moe>
2026-01-29 16:56:57 -05:00
Dniel97 966eeeeb87 mercury: update mystery cmds, add fg detect, cleanup 2026-01-19 19:51:48 +01:00
Hay1tsme 196853bcfd Merge pull request 'mai2io: change 2p select button default key' (#95) from zaphkito/segatools:develop into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/95
2026-01-14 22:31:56 +00:00
Dniel97 3a8bde7ca8 mercury: fix left touch board, window focus, launch params 2026-01-14 23:30:00 +01:00
zaphkito b9233207f5 mai2io: change 2p select button default key
0x54 is "T", "*" should be VK_MULTIPLY aka 0X6A
tested work
2026-01-13 06:57:52 +00:00
Dniel97 2475b48ef3 misc: fix foreground window issues, enable by default 2026-01-09 2026-01-09 15:36:10 +01:00
Dniel97 a2bfd840d6 idac: improve DNS hooking 2026-01-09 15:34:30 +01:00
Dniel97andHaseoSora 1a7a53f328 Update deadzone in wheel center for IDAC/IDZ/SWDC (#93)
Original PR by @HaseoSora :https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/82

Co-authored-by: HaseoSora <haseosora@noreply.gitea.tendokyu.moe>
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/93
Co-authored-by: Dniel97 <Dniel97@noreply.gitea.tendokyu.moe>
Co-committed-by: Dniel97 <Dniel97@noreply.gitea.tendokyu.moe>
2026-01-09 13:32:35 +00:00
kyoubate-haruka 3182720890 ewf: dynamic allocation to shrink output binary size (#92)
as noted on discord

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/92
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-01-08 20:20:02 +00:00
Dniel97 0a27ed2aae idz, swdc: add up/down/left/right DInput button config 2026-01-04 10:11:15 +01:00
Dniel97 e2257a6fa7 misc: cleanup 2026-01-04 10:06:23 +01:00
グローランプ bf8f3dd6f9 aimeio-vfd: Add VFD text forwarding and state callbacks to AIME IO (#90)
## Summary

- feat(aimeio): add VFD text forwarding API and wire through DLL/VFD backend
- feat(aimeio): add VFD state callback and export symbols across hooks
- refactor(aimeio): rename VFD callbacks and align VFD parsing
- feat(aimeio): extend VFD state fields for richer reporting

## Description
This PR expands the AIME IO VFD interface by adding text forwarding and a VFD state callback, then wires them through the AIME DLL and VFD backend.
It also renames VFD callbacks to align parsing behavior, updates all hook exports accordingly, and extends VFD state fields to carry more detailed state data.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/90
Co-authored-by: グローランプ <130208311+Gl0w1amp@users.noreply.github.com>
Co-committed-by: グローランプ <130208311+Gl0w1amp@users.noreply.github.com>
2026-01-04 08:43:52 +00:00
グローランプ ff28d4ff09 mai2io: add camera LED control functions (#91)
This is a follow-up to the previous PR. I realized I omitted the camera LED control interface, so I'm adding it now to complete the v1.02 API set.

**Changes:**
* Added `mai2_io_led_cam_set` to the 0x0102 API.
* Wired IO4 GPIO outputs to forward code reader/player camera light states.
* Updated `mai2hook.def` to export the new symbol.
* Updated `MAI2_DLL_SYM_COUNT_V102` to reflect the additional symbol count.

**Versioning Note:**
Since the previous PR was just merged and v1.02 hasn't been officially released yet, I've opted to include this in the existing **0x0102** version rather than bumping to 0x0103.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/91
Co-authored-by: グローランプ <130208311+Gl0w1amp@users.noreply.github.com>
Co-committed-by: グローランプ <130208311+Gl0w1amp@users.noreply.github.com>
2026-01-04 08:41:56 +00:00
グローランプ 41d7ce111d mai2io/led15070: add LED control APIs and PWM/fade handling (#89)
## Summary

- feat(io4): implement PWM/GPIO support for Billboard and Code Reader lights
- feat(mai2io): expose LED control APIs to support new io4 features
- fix(led15070): correct multi-LED color logic and add fade support

## Description

**io4 & mai2io Updates**
Introduced PWM control and GPIO write support in `io4`. These additions allow `mai2io` to properly drive the **Billboard LEDs** and **Code Reader / Player Camera lights**. The APIs have been exposed through `mai2hook` to facilitate scriptable control of these peripherals.

**led15070 Improvements**
Fixed an issue with the multi-LED color changing logic in the `led15070` driver. This ensures correct color output sequence and includes improvements for fade calculation.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/89
Co-authored-by: グローランプ <130208311+Gl0w1amp@users.noreply.github.com>
Co-committed-by: グローランプ <130208311+Gl0w1amp@users.noreply.github.com>
2025-12-25 20:10:59 +00:00
Dniel97 c0f9b8f1ad mu3: fix led data 2025-12-25 00:15:15 +01:00
Dniel97 16942a03d4 mercury: rename elisabeth to elizabeth 2025-12-25 00:12:44 +01:00
octocat 7c10698ca9 Fix compiler errors for 64bit gcc (#87)
Why would anyone detect ISA at runtime?

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/87
Co-authored-by: octocat <git.rascal570@passinbox.com>
Co-committed-by: octocat <git.rascal570@passinbox.com>
2025-12-24 23:08:08 +00:00
Dniel97 60e7e1d432 mai2: add all net auth 1.0 2025-12-25 00:05:51 +01:00
kyoubate-haruka d5bde32df7 ewf: implement EWF virtualization (#84)
(Yeah, I know the OS may cache disk reads, but that wasn't the concern)

The ALLS series of cabs runs EWF to prevent anything from being written to C:\.

This PR adds another layer to iohook to redirect specific open/read/write/close operations to a virtual file table to prevent disk activity, and thus simulate the presence of EWF. This was mainly aimed at ALPB's billing files. Seriously, look at this - especially the timestamps, Sega wtf are you doing.

This does not affect other path hooks. It's turned off by default and will throw an error if the current executable resides on C:\.

Tested with FGO and APMv3.

![22bf755754[1].png](/attachments/31771aee-2e4d-4e4f-85e3-c5eec63c6f78)

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/84
Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
2025-12-25 00:04:30 +01:00
Dniel97 bad219be4c misc: fix path hooks
- Added missing MoveFileExW hook
- Fixed path memory leaks
- Added all CopyFile hooks
2025-12-24 23:21:30 +01:00
Dniel97 0be4b47448 misc: add GetDriveType hook 2025-12-24 14:26:58 +01:00
Dniel97 e4bd0543c9 diva: add partition and button LED support 2025-12-21 20:43:08 +01:00
Dniel97 ce77d60905 mai2: fix memory leak and high CPU usage 2025-12-21 18:58:01 +01:00
kyoubate-haruka b86049034f Add setting to only allow game input in foreground (#83)
This adds a setting to the global configuration to allow only input when the game is focused. This prevents issues, such as triggering game buttons or service buttons while being tabbed out. Turned off by default.

The implementation is not the best, but in the context how these games are structured, the most acceptable.
It will keep scanning if the foreground window title fully matches (some games partially match, like FGO because due to the revision number in the title), and if found, will grab the HWND of that window and compare that from then on, to not tank performance due to constant string operations.

Tested with FGO, chusan and ongeki.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/83
Reviewed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe>
Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
2025-11-12 22:33:32 +00:00
Dniel97 af8d0bab7d update readme version 2025-11-04 11:06:16 +01:00
goldfisher11andgoldfisher11 146550e68c spike_develop (#80)
Co-authored-by: goldfisher11 <goldfish1984@163.com>
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/80
Reviewed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe>
Co-authored-by: goldfisher11 <goldfisher11@noreply.gitea.tendokyu.moe>
Co-committed-by: goldfisher11 <goldfisher11@noreply.gitea.tendokyu.moe>
2025-11-02 08:47:18 +00:00
Dniel97 d9075bbfce Merge branch 'feature/openssl' into develop 2025-10-12 12:49:55 +02:00
Dniel97 6fe8744b0f common: add OpenSSL patch comments, bump capnhook 2025-10-12 12:42:06 +02:00
Dniel97 19cd7cb8df common: add OpenSSL Intel SHA ext hook 2025-10-05 11:01:13 +02:00
Dniel97 19c1a8e469 Merge pull request 'idac: Add configurable remapping for D-Pad Up/Down buttons.' (#77) from puniru/segatools:up_down into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/77
Reviewed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe>
2025-08-27 20:39:40 +00:00
puniru eb96660fdf idac: update config for up and down dpad buttons 2025-08-27 13:30:00 +09:00
puniru 83a9a49429 idac: allow changing up and down for custom boards 2025-08-22 15:03:19 +09:00
kyoubate-haruka d423058cbd APM3: Fix amdaemon breakage when Unity Doorstop is present (#76)
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/76
Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
2025-08-10 16:04:01 +00:00
Dniel97 55a3859891 [swdc] fix magnitude calculation 2025-08-06 19:40:04 +02:00
Dniel97 3f2cfb6a26 [apm3, idac] improved launch.bat, removed zinput 2025-08-01 17:58:21 +02:00
Dniel97 e74e2a0d47 [apm3, swdc, idac] DInput8 cleanup 2025-07-29 18:06:10 +02:00
Dniel97 122034f922 [fgo] improve keyboard bindings 2025-07-27 22:05:07 +02:00
Dniel97 bb0b023ec0 [apm3] hook video loading, bug fixes 2025-07-27 19:22:57 +02:00
Dniel97 bb01e131e9 [epay]: hook enabled by default 2025-07-27 18:06:58 +02:00
kyoubate-haruka ded1375e88 Vfs: Hook .ini reader functions to fix DLI reading (#75)
Pretty simple, DLI reading (more commonly known as DownloadOrder) calls GetPrivateProfile* with a file path with E:\tmpDli*.ini. This fails right now.

I have only hooked the functions that appear in the latest amdaemon.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/75
Reviewed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe>
Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
2025-07-24 09:16:22 +00:00
Dniel97 0006731536 [apm3] fix led hook, fix blocked reboot 2025-07-21 21:09:24 +02:00
Dniel97 ae168cdaf9 Merge branch 'feature/apm3' into develop 2025-07-20 18:49:15 +02:00
Dniel97 e974a76fe6 [apm3] add DInput and XInput support 2025-07-20 18:13:29 +02:00
kyoubate-haruka e2e4b37e3f APMv3: add hook (#73)
This adds support for APMv3 I/O, menus and the launcher.

* Added a apm3hook dll and I/O based on the usual layout.
* Added C:\Mount\Apm to vfs.
* Added the relevant .dlls to unityhook.
* Added a hook for apmmount.dll that uses `CreateDosDevice` to mount decrypted data to the locations the launcher and games expect files to be. This will conflict with anything that is already at W:\ and X:\, but I do not have better solutions for this.
* `launch.bat` is a bit more involved as it simulates the launcher loop. It can be broken by alt+f4ing or closing the launcher with "X".
* An extra export was added, so rundll32 can be used to get rid of the dosdevices after the launcher was killed.
* Since all the games do everything via `X:\lib\apm.dll`, no game hooks were needed in testing, therefore, `game.bat` files can be used as is.
* Path hooks are applied correctly, so you can go correctly between games, launcher, sub system test mode and game test modes.

A setup guide (some stuff specific to my server) can be found here:
https://gmg.hopto.org:82/gmg/wiki/index.php/All.Net_P-ras_Multi_Menu

Tested with the 2 APM sample apps, Blazblue, Puyo, Guilty Gear and some weird unity puzzle game whose name I forgot.

![Apmv3System_yLRityJVpm.png](/attachments/3d645e71-81e6-42e6-acd4-63c537cda59e)
![puyoe_hJNhnJGFnd.png](/attachments/01664049-71fe-4c38-9c99-39649ab21e56)

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/73
Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
2025-07-20 09:43:56 +00:00
Dniel97 f595af9686 [cm, mercury, mu3] update aime reader gen 2025-07-19 23:35:46 +02:00