forked from Hay1tsme/segatools
Vfs: Add ability to redirect arbitary paths (= serial ports) #62
Reference in New Issue
Block a user
No description provided.
Delete Branch "Haruka/segatools:file_redirection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
is this work for chusan about
make COM1 is aime reader and COM4 is slider
@ -544,0 +571,4 @@
return S_FALSE;
}
if (path_compare_w(src, from, wcslen(from)) != 0) {
You're calling strlen for each path access, multiplied by the number of redirections
corrected, thanks
@zaphkito IF chusan opens ports like that, it will work, but games can also open ports in different ways.
Thanks for the PR, I will try to review it and test it (or maybe @Hay1tsme?) but looks good so far :)
So I tried the changes on FGO AC and I connected the VFD on COM7 (just for testing) and added the following redirect:
but that didn't work.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.