944 Commits
Author SHA1 Message Date
Kevin 8a966b2454 port aime auth check from bananatools 2026-09-18 18:35:07 -04:00
Hay1tsme c929c85b1d add a few more keychip flags and descriptions 2026-09-15 21:52:01 -04:00
Haruka be2612b5c4 docs: keychip flags (#136)
I was wondering where "All.Net Slim: OFF" in the system program was coming from

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/136
Co-authored-by: Haruka <396+haruka@noreply.gitea.tendokyu.moe>
2026-09-13 19:22:31 +00:00
puniru bbe37bfb40 idac, idz, swdc: recover dinput device during gameplay (#134)
This PR adds a feature that lets the segatools reacquire dinput device if it disconnects during gameplay. Before this if dinput device disconnects for any reason then it would require user to restart the game since segatools doesn't attempt to reacquire the same dinput device it launched with.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/134
Co-authored-by: puniru <puniru@posteo.jp>
2026-09-08 13:47:23 +00:00
Hay1tsme 9bdceedc8b Merge pull request 'fgo: fix mismatching setting key name' (#132) from Haruka/segatools:haruka-patch-1 into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/132
2026-08-30 01:01:22 +00:00
Haruka fd69a1d4e7 Update games/fgohook/config.c 2026-08-24 21:03:24 +00:00
Hay1tsme a9ca61f285 touch: add hook for RegisterClassExW 2026-08-24 01:34:24 -04:00
Hay1tsme 3e02283967 cxb: touch emulation 2026-08-24 01:33:24 -04:00
Hay1tsme 6d2078f966 fix MSVC failing to comepile due to mismatched paramter const-ness 2026-08-24 01:32:53 -04:00
Hay1tsme 1beeaf30b3 aimeio: Check for felica before trying to generate an access code 2026-08-24 01:28:25 -04:00
Dniel97 af88b8f06e bump capnhook 2026-08-10 17:47:49 +02:00
kyoubate-haruka beb54c57c3 ewf: support for FTYPE irp and file seeking, fix mono quirks (#120)
Fixes #116
Requires https://gitea.tendokyu.moe/TeamTofuShop/capnhook/pulls/7

This implements file seeking for files inside virtual files from ewfhook, as well as fixes a mono implementation detail where it changes it's behaviour based on the result of GetFileType. see capnhook PR for more info.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/120
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-08-10 15:43:39 +00:00
MikiraSora 31c184adf7 unity: support debugging (#99)
User can debug their Unity game with dnspy and other debugger, it needn't patch mono.dll.

most code is copied&modified from [UnityDoorstop](https://github.com/NeighTools/UnityDoorstop/blob/master/src/bootstrap.c#L328)

currently it work on SDEZ/SDDT

<details>
  <summary>How to debug and breakpoint Unity game (For example SDDT)</summary>

1.   Modify segatools.ini and set `enableDebug` and `debugAddress`
![image.png](/attachments/60a681ac-f050-4923-b955-6b3fdd93a75e)

2.   Inject mu3 with hook dll
![image.png](/attachments/b51391e8-92b4-4c6b-b531-f4171f2f4447)

3.   dnspy connect unity
![image.png](/attachments/513906d3-0f14-4e40-be9f-da87928eeaaf)

4.  open Modules tab and double click Assembly-CSharp.dll, yeah, now you can add breakpoints now.
![image.png](/attachments/5e2a1f0b-62fd-4e68-997f-c2c68efee9ef)

</details>

and make unity_config.target_assembly is optional if we just want to debug unity.

Now PR is ready to code review and merge into upstream.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/99
Co-authored-by: MikiraSora <mikirasora0409@126.com>
Co-committed-by: MikiraSora <mikirasora0409@126.com>
2026-08-10 15:42:41 +00:00
kyoubate-haruka 0e76dd832a diva: input rewrite, dinput/xinput, button alternation, auto-slide, wintouch, printer (#129)
* Rewrote the input handler

Added support for dinput and xinput, full keyboard slider cell binding (#127), hold-takeovers, button alternation and auto-sliding (PS4 behaviour). See segatools.ini for a detailed description about everything.

* Split touch handling into backends and added Wintouch touch emulation

Now you can use actual touchscreens as well as mouse emulation was not the greatest when trying to use an actual touchscreen.

* Fixed input issues

gamebtns was always uninitialized, so good luck trying to do anything. How did nobody ever complain about this? lol

* Fixed resolution issues caused by chaining both gfx hooks

The diva-specific hook is the only one we need. Stacking both has strange effects.

* Added support for the MITSUBISHI CP9550DS printer

Q: Why?
A: /shrug

![https://puu.sh/KQlev/ce2ef0efed.bmp](https://puu.sh/KQlev/ce2ef0efed.bmp)

I am not particularly good at this game (or the pass requirements are insane, 23+12 misses out of ~550 is a fail!?), so if someone could test how this feels as opposed to the PS4 version, that would help a lot!

![https://puu.sh/KQldU/fa4c848ff9.png](https://puu.sh/KQldU/fa4c848ff9.png)

Also something that happens but that I can't reliably reproduce is that my aime card reader randomly becomes NG after a dozen game starts until I delete eeprom.bin.
If that is the case, the only packet sent is SEND_HEX_DATA.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/129
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-08-10 15:41:40 +00:00
Dniel97 c92119b4c5 misc: fix path compiling, fix apm3 server detection 2026-07-23 21:25:49 +02:00
Hay1tsme bbf5490cb4 Merge pull request 'fix build by not depending on Windows DDK' (#126) from Haruka/segatools:fix-msvc into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/126
2026-07-21 16:11:36 +00:00
kyoubate-haruka 7593176cad fix msvc 2026-07-20 09:43:52 +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
kyoubate-haruka fab190272c nusec: add data persistence (#124)
Adds an opt-in toggle to make keychip data (playcount, log, etc.) persistent into a file located in the DEVICE folder.

Now why you would want to do that, I don't know myself. But higher accurracy to the real thing is always cool.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/124
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:21:03 +00:00
グローランプ 89bd77e306 IO: Resolve IO DLL paths from environment variables (#119)
## Summary

Adds a unified mechanism for locating third-party IO DLLs through environment
variables, on top of the existing per-game `[xxxio] path=` INI setting.

## Changes

For each IO DLL, the path is resolved in this order:

1. The section-specific INI value, e.g. `[mai2io] path=`.
2. The section-specific environment variable, e.g. `SEGATOOLS_MAI2IO_PATH`.
3. `SEGATOOLS_IO_ROOT` joined with the default IO DLL filename, e.g.
   `%SEGATOOLS_IO_ROOT%\mai2io.dll`.
4. Empty path, which keeps the built-in IO implementation (unchanged default).

INI and environment-variable paths are run through Windows environment-variable
expansion, so values such as `%SEGATOOLS_IO_ROOT%\mai2io.dll` are valid in the
INI directly.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/119
Co-authored-by: グローランプ <130208311+Gl0w1amp@users.noreply.github.com>
Co-committed-by: グローランプ <130208311+Gl0w1amp@users.noreply.github.com>
2026-07-08 20:23:08 +00:00
kyoubate-haruka 8da836ccfb epay: compatibility fixes (fixes #109) (#110)
Untested, I don't have a real e-money server to verify this with

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/110
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-05 15:25:57 +00:00
Hay1tsme ea0efdc080 Merge pull request 'spike: add ability to change to hex rvas' (#117) from Haruka/segatools:spike_hex into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/117
2026-06-23 00:51:04 +00:00
Hay1tsme e0d18cf5c2 Merge pull request 'nfc: add setting to change FeliCa PMm to read as FeliCa Mobile' (#118) from Haruka/segatools:mobile_felica into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/118
2026-06-23 00:48:41 +00:00
Hay1tsme fb71dab20e Merge pull request 'netenv: add redirectBroadcast toggle and stop broadcast log spam' (#104) from Gl0w1amp/segatools:feature/netenv-broadcast-toggle into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/104
2026-06-23 00:45:43 +00:00
Hay1tsme 89cd55196f Merge pull request '[+] chusan fullscreen alt+tab crash fix' (#115) from azaneko/segatools:develop into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/115
2026-06-23 00:40:31 +00:00
Gl0w1amp c3af3ced3a Merge branch 'develop' into feature/netenv-broadcast-toggle 2026-06-19 17:16:08 +00:00
azaneko c1527df801 Merge branch 'develop' into develop 2026-06-18 02:18:35 +00:00
kyoubate-haruka a8f75521d5 nfc: add setting to change FeliCa PMm to read as FeliCa Mobile 2026-06-12 11:44:31 +02:00
kyoubate-haruka 700efa8d85 spike: add ability to change to hex rvas 2026-06-11 10:25:42 +02:00
Hay1tsme 5d330238d8 Merge pull request 'Get amGfetcher working ("DownloadOrder")' (#112) from Haruka/segatools:gfetcher into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/112
2026-06-09 04:11:21 +00:00
Azalea fd1e970b0a [+] chusan fullscreen alt+tab crash fix 2026-06-08 20:21:52 -04:00
Hay1tsme db85fe083e Merge pull request 'sekito: save infrared pattern to file' (#111) from Haruka/segatools:sgt_print_infrared into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/111
2026-05-31 00:13:08 +00:00
kyoubate-haruka ffe569297e vfs: add toggle to intentionally break download process 2026-05-30 11:37:17 +02:00
kyoubate-haruka ad7f6bc800 misc: rename NextProcess.txt file setting 2026-05-30 10:20:09 +02:00
kyoubate-haruka de82acf782 reg: allow opening keys multiple times 2026-05-29 12:06:27 +02:00
kyoubate-haruka 268f252d3e misc: add ability to write NextProcess to file 2026-05-28 11:15:01 +02:00
kyoubate-haruka 2a08e3f59f dns: forward AbaaS log server to configured server 2026-05-27 23:24:08 +02:00
kyoubate-haruka 31e5cdf76d reg: add various missing registry keys 2026-05-27 23:23:35 +02:00
kyoubate-haruka 6b1f494559 path: hook GetDiskFreeSpaceW for amGfetcher 2026-05-25 11:32:35 +02:00
kyoubate-haruka 0bb318f58c sekito: save infrared pattern to file 2026-05-25 11:30:35 +02:00
Dniel97 ed17331c7a misc: fix docker build with space in path 2026-05-13 18:36:23 +02:00
HaseoSoraandDniel97 31a6d3aacf Lowered sbringBoost (#103)
Lowered springBoost from 1.5x to 1.0x

Co-authored-by: Dniel97 <Dniel97@noreply.gitea.tendokyu.moe>
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/103
Co-authored-by: HaseoSora <haseosora@noreply.gitea.tendokyu.moe>
Co-committed-by: HaseoSora <haseosora@noreply.gitea.tendokyu.moe>
2026-05-12 08:02:16 +00:00
Dniel97 a21548d031 Merge pull request 'doc: add usage notes for [touch] config' (#105) from sam_nya/segatools:develop into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/105
2026-05-12 08:01:26 +00:00
Dniel97 e903f206a6 Merge pull request 'sekito: fix second page overwriting first page' (#108) from Haruka/segatools:fix_sgt_print into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/108
2026-05-12 07:59:59 +00:00
kyoubate-haruka abe1a9d77e sekito: fix second page overwriting first page 2026-05-06 11:28:15 +02:00
samnyan 5f818a4457 doc: add usage notes for [touch] config 2026-04-21 12:12:55 +08:00
グローランプ d0d470c679 netenv: add redirectBroadcast configuration option to control UDP broadcast redirection 2026-04-13 00:18:32 +10:00
グローランプ f4841280e7 netenv: enhance broadcast logging to prevent log spamming by tracking unique source/destination pairs 2026-04-13 00:12:49 +10:00
Dniel97 54614224fd update readme 2026-04-06 14:25:43 +02:00
HaseoSora ddc969ff04 haseosora-springBoost-Integration (#102)
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/102
Reviewed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe>
Co-authored-by: HaseoSora <haseosora@noreply.gitea.tendokyu.moe>
Co-committed-by: HaseoSora <haseosora@noreply.gitea.tendokyu.moe>
2026-04-06 12:22:00 +00:00