Commit Graph

845 Commits

Author SHA1 Message Date
Dniel97
ec00a83d6b
[apm3] hook video loading, bug fixes 2025-07-27 19:20:36 +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
Dniel97
03513e7b0c
add aime scan button to default segatools.ini 2025-07-16 15:44:05 +02:00
Dniel97
cdb6815c5a
add keychip id and pcbid to default segatools.ini 2025-06-19 19:28:10 +02:00
Dniel97
4644e36ccc
Merge branch 'feature/cleanup' into develop 2025-06-19 18:18:30 +02:00
Dniel97
dbfc62b5d4
platform: fix dipsw settings not applying 2025-06-19 18:17:20 +02:00
Hay1tsme
24e8bc87a3 remove reference to nonexistant files 2025-04-17 14:06:55 -04:00
Hay1tsme
a65b43fe1a Merge branch 'feature/cleanup' of https://gitea.tendokyu.moe/teamtofushop/segatools into feature/cleanup 2025-04-17 14:05:45 -04:00
Dniel97
66a53dd2de
refactor all common parts and games 2025-04-17 20:04:17 +02:00
Dniel97
ae3dd666f4
refactor all common parts and games 2025-04-17 19:40:40 +02:00
Dniel97
a6126bf290
Merge branch 'feature/thinca_auth' into develop 2025-04-17 19:18:03 +02:00
Dniel97
015097972a
emoney: improce doc and add python script 2025-04-17 19:17:42 +02:00
Haruka
67eda7458b emoney: Add Thinca authentication card stuff (#35)
This PR adds everything that's needed on the segatools side to add E-Money support regarding Thinca authentication cards.

I've also included set-up documentation (with a network side bonus which was as far as I could figure out so far, but I'm pretty certain no more changes to segatools will be needed)

Due to the nature of a custom protcol called TCAP that Thinca uses for networking (see docs), I can't fully test that everything works as I haven't yet bothered to figure that protocol out.

Tested with both APMv3 and FGO.

![https://puu.sh/KeqVj/ccf4bcccbb.png](https://puu.sh/KeqVj/ccf4bcccbb.png)

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/35
Co-authored-by: Haruka <haruka@noreply.gitea.tendokyu.moe>
Co-committed-by: Haruka <haruka@noreply.gitea.tendokyu.moe>
2025-04-17 17:01:38 +00:00
Hay1tsme
b37e1105d0 misc: added a showcursor counter to more accuratly replicate actual function behavior 2025-04-16 22:10:19 -04:00
Hay1tsme
9a6c4939c2 system: fix sysfile patches not applying when compiling with msvc 2025-04-16 22:09:48 -04:00
kyoubate-haruka
39711a994a FGO: add keyboard input (#61)
Probably self-explanatory :p

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/61
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-04-05 15:22:14 +00:00
kyoubate-haruka
61f95c3f2e GFX: add dpi-awareness switch for all games (#64)
Pretty simple, adds a new config setting to the gfx category, which defaults to enabled to disable DPI scaling if a scale higher than 100% is used, causing game windows to appear stretched and blurry.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/64
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-03-14 11:53:31 +00:00
kyoubate-haruka
70c3e2fe0f 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>
2025-03-09 16:05:03 +00:00
Hay1tsme
369fe28687 disable excess logging for carol touchscreen hook 2025-03-02 04:10:35 -05:00
Hay1tsme
3371f3f437 fix msvc build by removing ntstatus include from platform/system.c 2025-03-02 01:45:23 -05:00
Dniel97
a57542c2d2
Merge branch 'feature/code-cleanup' into develop 2025-03-02 00:36:27 +01:00
Dniel97
27116a7a41
idac, tokyo: improve dipsw cabinet id config 2025-03-02 00:36:13 +01:00
Dniel97
e850346b79
renamed start.bat to launch.bat 2025-03-02 00:25:15 +01:00
Dniel97
4d0ef54279
system: add dip switch label configurations 2025-03-02 00:23:53 +01:00
Dniel97
b8af67377c
Merge branch 'feature/mai2-touch-led' into develop 2025-03-02 00:04:00 +01:00
Dniel97
4cb76dd1ee
mai2: update all LED boards to use two boards 2025-03-02 00:01:45 +01:00
kyoubate-haruka
efe01d92a6 Fix MSVC build again, add support for standalone MSVC compiler (#59)
After switching away from VS, I realized the buildscript wouldn't detect the standalone MSVC compiler, because for whatever genius reason, MS installs that in the x86 program files directory...

Also fixes some duplicate definitions and a missing library that MSVC doesn't like
ah compilers...

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/59
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-02-24 18:49:22 +00:00
Hay1tsme
004a2f6dcd docs: fix playformID and billingType config docs 2025-02-21 19:37:54 -05:00
Mahuyo
a1611afffc Mai2: Add touch and led15070 hook (#55)
In this PR, I have added the `mai2` touch and `led15070` hooks to provide an example for handling custom peripherals. This change allows users to implement the touch and `led15070` logic by writing appropriate `mai2io` scripts.

#### **Touch Hook**:
- The touch hook simulates touch points based on keyboard combinations. For example, to trigger the A1 touch point, the user must press the A and 1 keys on the keyboard. Input for the 1p requires Caps Lock to be off, while 2p requires Caps Lock to be on.
- The hook allows for independent control of whether device simulation is enabled for "1p" and "2p" and whether keyboard input mapping is enabled.
- **Note**: The current touch hook is not yet functional as it requires modifications to the `capnhook` for proper completion of the `sinmai` hook.

#### **LED15070 Hook**:
- This hook implements basic device simulation. Peripherals requiring lighting data should complete the logic as needed.
- **Note**: The LED data refresh can flood the console logs, so I’ve added a `DEBUG` flag to control whether the debug logging is enabled or not.

#### **Other Changes**:
- In certain versions of `sinmai`, key inputs for 1p and 2p can be directly read from the keyboard without requiring simulation via the `amdaemon io4` hook. I’ve added a switch to control this behavior to prevent redundant input.
- **Benefit**: This ensures that key input is only read when `sinmai` is in the foreground.

If you'd like to learn more about the touch and `led15070` features, my research findings are available here:
[Mai2Touch](https://github.com/Sucareto/Mai2Touch)

Co-authored-by: Sucareto <28331534+Sucareto@users.noreply.github.com>
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/55
Co-authored-by: Mahuyo <mahuyo@noreply.gitea.tendokyu.moe>
Co-committed-by: Mahuyo <mahuyo@noreply.gitea.tendokyu.moe>
2025-02-16 12:49:58 +00: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
402bf0f247 nusec: add full IOCTL list without handlers 2025-01-28 01:41:03 -05:00
Hay1tsme
4c20deb60a bump capnhook ver 2025-01-27 02:09:14 -05:00
Dniel97
96ee1afc2f Merge pull request 'Revert: Add automatically apply OpenSSL patch for Intel Gen 10+ CPUs' (#54) from Bottersnike/segatools:develop into develop
Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/54
2024-12-27 14:18:27 +00:00
Bottersnike
0c28765bdd
Revert: Add automatically apply OpenSSL patch for Intel Gen 10+ CPUs 2024-12-27 14:12:58 +00:00
Dniel97
96bf8cab81
aime: add portNo to config 2024-12-23 21:49:24 +01:00
Dniel97
a3120181be
replace hardcoded enums with #define CTL_CODEs 2024-12-23 21:48:30 +01:00
Dniel97
80d4902cfc
remove 5gb wasted space by removing precompiled headers 2024-12-23 21:04:51 +01:00
Dniel97
b4f5cdbe59 Merge pull request 'Add automatically apply OpenSSL patch for Intel Gen 10+ CPUs' (#43) from kagaminehaku/segatools:develop into develop
Reviewed-on: https://gitea.tendokyu.moe/Dniel97/segatools/pulls/43
2024-12-23 19:43:47 +00:00
KagamineHaku
25431a9db1 Add "openssl" config key doc 2024-12-24 02:34:44 +07:00
Dniel97
a705ae8748 Merge pull request 'Add changeable config path' (#53) from GEEKiDoS/segatools:develop into develop
Reviewed-on: https://gitea.tendokyu.moe/Dniel97/segatools/pulls/53
2024-12-23 18:04:12 +00:00
Dniel97
b52455339f Merge pull request 'dns: add port overriding support' (#52) from t12i/segatools:develop into develop
Reviewed-on: https://gitea.tendokyu.moe/Dniel97/segatools/pulls/52
2024-12-23 17:54:38 +00:00
kagaminehaku
ff21223f06 Removed the unused lines 2024-12-17 10:06:41 +07:00
GEEKi
047733d122 format code 2024-12-16 11:18:00 +08:00