segatools/common/platform
kyoubate-haruka a3ac466dba Vfs: Add ability to redirect arbitary paths (= serial ports) (#62)
As someone running several games on the same cabinet that share most of the hardware (like KCA and FGO), it's a bit of a hassle switching the COM ports of the hardware around all the time.

This commit adds the ability to place arbitary path redirections in segatools.ini, which is mostly useful for hardcoded serial ports.
Technically this would also allow you to redirect arbitary paths, but I haven't tested that yet.

An example that I personally use is:
```
[vfs]
amfs=amfs
appdata=.
option=option

; aime reader
redirection0from=\\.\COM10
redirection0to=\\.\COM3
; rfid reader
redirection1from=\\.\COM12
redirection1to=\\.\COM2
; POP led begone
redirection2from=\\.\COM9
redirection2to=\\.\COM90
; partition to pop
redirection3from=\\.\COM11
redirection3to=\\.\COM9
```

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/62
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-02-08 11:12:02 +00:00
..
amvideo.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
amvideo.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
clock.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
clock.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
config.c Vfs: Add ability to redirect arbitary paths (= serial ports) (#62) 2026-02-08 11:12:02 +00:00
config.h ewf: implement EWF virtualization (#84) 2025-12-25 00:04:30 +01:00
dns.c idac: improve DNS hooking 2026-01-09 15:34:30 +01:00
dns.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
epay.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
epay.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
ewf.c ewf: dynamic allocation to shrink output binary size (#92) 2026-01-08 20:20:02 +00:00
ewf.h misc: fix foreground window issues, enable by default 2026-01-09 15:36:10 +01:00
hwmon.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
hwmon.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
hwreset.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
hwreset.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
meson.build misc: fix foreground window issues, enable by default 2026-01-09 15:36:10 +01:00
misc.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
misc.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
netenv.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
netenv.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
nusec.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
nusec.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
openssl.c Merge branch 'feature/openssl' into develop 2025-10-12 12:49:55 +02:00
openssl.h common: add OpenSSL Intel SHA ext hook 2025-10-05 11:01:13 +02:00
pcbid.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
pcbid.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
platform.c ewf: implement EWF virtualization (#84) 2025-12-25 00:04:30 +01:00
platform.h misc: fix foreground window issues, enable by default 2026-01-09 15:36:10 +01:00
security.c APMv3: add hook (#73) 2025-07-20 09:43:56 +00:00
security.h APMv3: add hook (#73) 2025-07-20 09:43:56 +00:00
system.c platform: fix dipsw settings not applying 2025-06-19 18:17:20 +02:00
system.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
vfs.c Vfs: Add ability to redirect arbitary paths (= serial ports) (#62) 2026-02-08 11:12:02 +00:00
vfs.h Vfs: Add ability to redirect arbitary paths (= serial ports) (#62) 2026-02-08 11:12:02 +00:00