In GitLab by @tudor on Nov 26, 2019, 22:03
Commented on [dist/sdvx5/gamestart.bat line 16](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..cf822851ede35234a02ced404fe19c7cdf7092bf#diff-d372fae359aa924ced9b34198bd72710R16)
sdvxhook2? or sdvxhook5?
In GitLab by @xyen on Nov 26, 2019, 22:04
Commented on [dist/sdvx5/gamestart.bat line 16](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..cf822851ede35234a02ced404fe19c7cdf7092bf#diff-d372fae359aa924ced9b34198bd72710R16)
changed this line in [version 2 of the diff](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1085&start_sha=cf822851ede35234a02ced404fe19c7cdf7092bf#1a5ac3e63ab5460cdbdb5887e8990d1204f37718_16_16)
In GitLab by @xyen on Nov 26, 2019, 22:04
added 1 commit
<ul><li>e42de4fa - sdvxhoook2: typo in gamestart</li></ul>
[Compare with previous version](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1085&start_sha=cf822851ede35234a02ced404fe19c7cdf7092bf)
My previous d3d9 hook module refactoring for IIDX also changed the main interfaces to init and configure the module which made the whole module more streamlined imo.
Suggestions:
Introduce a configuration structure that takes parameters to configure the module instead of having multiple function calls (see iidxhook-util/d3d9.h)
Have one function to init a configuration with default values and one to apply one to the module.
My previous d3d9 hook module refactoring for IIDX also changed the main interfaces to init and configure the module which made the whole module more streamlined imo.
Suggestions:
- Introduce a configuration structure that takes parameters to configure the module instead of having multiple function calls (see iidxhook-util/d3d9.h)
- Have one function to init a configuration with default values and one to apply one to the module.
Proper namespacing of functions in modules is sometimes missing, e.g. acio_XXX -> sdvxhook2_acio_XXX. I assume because these were copy-pasted from existing infrastructure and adapted to work with sdvxhook2 which is fine. For new code, we should stick to some guidelines to establish a consistent style over time.
Add a sdvxhook2.md readme file similar to iidxhookX.md readme files
Can you add tests for the various modules? Especially tests to verify the bio2 and acio modules are processing messages correctly would be good to ensure any changes/refactorings can be verified without having to boot the games.
Some general notes:
- Proper namespacing of functions in modules is sometimes missing, e.g. acio_XXX -> sdvxhook2_acio_XXX. I assume because these were copy-pasted from existing infrastructure and adapted to work with sdvxhook2 which is fine. For new code, we should stick to some guidelines to establish a consistent style over time.
- Add a sdvxhook2.md readme file similar to iidxhookX.md readme files
- Can you add tests for the various modules? Especially tests to verify the bio2 and acio modules are processing messages correctly would be good to ensure any changes/refactorings can be verified without having to boot the games.
This actually isn't the case, it enables usage of real BIO2 hardware on whatever the port that the BIO2 declares it self as. I just happened to pick COM4 as the default.
In GitLab by @xyen on Nov 30, 2019, 15:09
Commented on [src/main/sdvxhook2/config-io.c line 29](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..f69f0a8b467153efb76a67da8b27c4b863cc6164#diff-2872553b0e62c03f1e202c4c238e5fe9R29)
This actually isn't the case, it enables usage of real BIO2 hardware on whatever the port that the BIO2 declares it self as. I just happened to pick COM4 as the default.
In GitLab by @xyen on Nov 30, 2019, 15:12
Commented on [src/main/sdvxhook2/acio.c line 80](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..e42de4fa64f8a4fd3eaab5f80ac5fd28d87d647a#diff-43cf661a7d47e05b9deb3d84212ab9dfR80)
changed this line in [version 3 of the diff](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1095&start_sha=e42de4fa64f8a4fd3eaab5f80ac5fd28d87d647a#703bf4a3b449a44ac3a22dff31d9ec44c3c703b6_80_80)
In GitLab by @xyen on Nov 30, 2019, 15:12
Commented on [src/main/sdvxhook2/bi2a.c line 165](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..e42de4fa64f8a4fd3eaab5f80ac5fd28d87d647a#diff-746a3ce80a510b99a97dd57598191af8R165)
changed this line in [version 3 of the diff](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1095&start_sha=e42de4fa64f8a4fd3eaab5f80ac5fd28d87d647a#fd9a41a6b813cdd3f986518dd082019d73dcac43_165_165)
In GitLab by @xyen on Nov 30, 2019, 15:12
Commented on [src/main/sdvxhook2/bi2a.h line 49](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..e42de4fa64f8a4fd3eaab5f80ac5fd28d87d647a#diff-9f5b0f72307afcd234907a7931260e64R49)
changed this line in [version 3 of the diff](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1095&start_sha=e42de4fa64f8a4fd3eaab5f80ac5fd28d87d647a#235ef76b90f44c426c30e4d1fad10e504f2e7832_49_49)
In GitLab by @xyen on Nov 30, 2019, 15:12
Commented on [src/main/sdvxhook2/config-gfx.c line 33](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..e42de4fa64f8a4fd3eaab5f80ac5fd28d87d647a#diff-48da6d5e179881d5f84157da6ec74d6fR33)
changed this line in [version 3 of the diff](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1095&start_sha=e42de4fa64f8a4fd3eaab5f80ac5fd28d87d647a#8aa5b09685f7bdf3306c252fe3b8b2e688cfa285_33_27)
In GitLab by @xyen on Nov 30, 2019, 15:12
added 1 commit
<ul><li>bcabc208 - sdvxhook: remove pci override for gfx hooks and general cleanup</li></ul>
[Compare with previous version](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1095&start_sha=e42de4fa64f8a4fd3eaab5f80ac5fd28d87d647a)
I'm going to factor out this code into d3d9exhook as some other games require this as well, anything that's new enough to require d3d9ex likely won't need any game specific hacks which is why I'd rather have the graphics hooks be shared across games.
In GitLab by @xyen on Nov 30, 2019, 15:15
Commented on [src/main/sdvxhook2/d3d9.h line 10](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..bcabc2085ad7424414a784b1a6ce2cd7955b633d#diff-dd0c870caea58a55c6bd5c8699ffe2daR10)
I'm going to factor out this code into d3d9exhook as some other games require this as well, anything that's new enough to require d3d9ex likely won't need any game specific hacks which is why I'd rather have the graphics hooks be shared across games.
In GitLab by @xyen on Nov 30, 2019, 16:00
Commented on [src/main/sdvxhook2/d3d9.c line 181](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..bcabc2085ad7424414a784b1a6ce2cd7955b633d#diff-829e3b5f1ef14eef84c91208013efd1eR181)
changed this line in [version 4 of the diff](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1096&start_sha=bcabc2085ad7424414a784b1a6ce2cd7955b633d#a1dcf5787f100714d28d910af27de6127293dd9c_181_0)
In GitLab by @xyen on Nov 30, 2019, 16:00
Commented on [src/main/sdvxhook2/d3d9.h line 10](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..bcabc2085ad7424414a784b1a6ce2cd7955b633d#diff-dd0c870caea58a55c6bd5c8699ffe2daR10)
changed this line in [version 4 of the diff](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1096&start_sha=bcabc2085ad7424414a784b1a6ce2cd7955b633d#fb18c92b9cc1e8be4b73caf5c06fc0c5dd6e62bb_10_0)
In GitLab by @xyen on Nov 30, 2019, 16:00
added 1 commit
<ul><li>e2b2fcb5 - d3d9exhook: refactor d3d9ex hook from sdvxhook2 to shared library</li></ul>
[Compare with previous version](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1096&start_sha=bcabc2085ad7424414a784b1a6ce2cd7955b633d)
In GitLab by @xyen on Nov 30, 2019, 16:05
added 1 commit
<ul><li>a840e452 - d3d9exhook: refactor d3d9ex hook from sdvxhook2 to shared library</li></ul>
[Compare with previous version](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1097&start_sha=e2b2fcb5ed56002dedde902877123e243ff6690e)
In the future, we may wanna override the monitor id still, or fake additional monitors.
In GitLab by @xyen on Dec 1, 2019, 03:42
Commented on [src/main/d3d9exhook/d3d9ex.c line 98](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..f69f0a8b467153efb76a67da8b27c4b863cc6164#diff-88be4261cef25befc4653e41ac224407R98)
In the future, we may wanna override the monitor id still, or fake additional monitors.
In GitLab by @xyen on Dec 1, 2019, 03:46
Commented on [src/main/d3d9exhook/d3d9ex.c line 247](https://github.com/djhackersdev/bemanitools/compare/e45b0927757b62ec0ce107517033b451e13406b0..a840e452dd9ec4d3299db55a6e343c243b5a00dd#diff-88be4261cef25befc4653e41ac224407R247)
changed this line in [version 6 of the diff](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1098&start_sha=a840e452dd9ec4d3299db55a6e343c243b5a00dd#635ef12b21ec4a077c76251b15c5580dd5d42f19_247_247)
In GitLab by @xyen on Dec 1, 2019, 03:46
added 1 commit
<ul><li>f69f0a8b - sdvxhook2: add some minor documentation to config-gfx.h</li></ul>
[Compare with previous version](/djhackers/bemanitools/merge_requests/12/diffs?diff_id=1098&start_sha=a840e452dd9ec4d3299db55a6e343c243b5a00dd)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
In GitLab by @xyen on Nov 26, 2019, 22:02
Merges sdvxhook2 -> master
Pretty self-explanatory.
In GitLab by @tudor on Nov 26, 2019, 22:03
Commented on dist/sdvx5/gamestart.bat line 16
sdvxhook2? or sdvxhook5?
In GitLab by @xyen on Nov 26, 2019, 22:04
Commented on dist/sdvx5/gamestart.bat line 16
changed this line in version 2 of the diff
In GitLab by @xyen on Nov 26, 2019, 22:04
added 1 commit
e42de4fa- sdvxhoook2: typo in gamestartCompare with previous version
In GitLab by @xyen on Nov 26, 2019, 22:04
resolved all threads
Nit: Copy/paste leftover: IIDX ACIO bus
Include order: System includes with <...> before project/local includes with "..."
Nit: Empty line before control block
Nit: leading underscore to function name?
Style: Make variable names of struct lower-case
Is this really a thing we need for sdvxhook2 as well? Hard to believe considering this was required with IIDX 16 initially.
Nit: Missing newline after control block
My previous d3d9 hook module refactoring for IIDX also changed the main interfaces to init and configure the module which made the whole module more streamlined imo.
Suggestions:
"Disable BIO2 emulation and enable usage of real BIO2 hardware on COM4"
Some general notes:
In GitLab by @xyen on Nov 30, 2019, 15:09
Commented on src/main/sdvxhook2/config-io.c line 29
This actually isn't the case, it enables usage of real BIO2 hardware on whatever the port that the BIO2 declares it self as. I just happened to pick COM4 as the default.
In GitLab by @xyen on Nov 30, 2019, 15:12
Commented on src/main/sdvxhook2/acio.c line 80
changed this line in version 3 of the diff
In GitLab by @xyen on Nov 30, 2019, 15:12
Commented on src/main/sdvxhook2/bi2a.c line 165
changed this line in version 3 of the diff
In GitLab by @xyen on Nov 30, 2019, 15:12
Commented on src/main/sdvxhook2/bi2a.h line 49
changed this line in version 3 of the diff
In GitLab by @xyen on Nov 30, 2019, 15:12
Commented on src/main/sdvxhook2/config-gfx.c line 33
changed this line in version 3 of the diff
In GitLab by @xyen on Nov 30, 2019, 15:12
added 1 commit
bcabc208- sdvxhook: remove pci override for gfx hooks and general cleanupCompare with previous version
In GitLab by @xyen on Nov 30, 2019, 15:15
Commented on src/main/sdvxhook2/d3d9.h line 10
I'm going to factor out this code into d3d9exhook as some other games require this as well, anything that's new enough to require d3d9ex likely won't need any game specific hacks which is why I'd rather have the graphics hooks be shared across games.
In GitLab by @xyen on Nov 30, 2019, 15:15
resolved all threads
In GitLab by @xyen on Nov 30, 2019, 16:00
Commented on src/main/sdvxhook2/d3d9.c line 181
changed this line in version 4 of the diff
In GitLab by @xyen on Nov 30, 2019, 16:00
Commented on src/main/sdvxhook2/d3d9.h line 10
changed this line in version 4 of the diff
In GitLab by @xyen on Nov 30, 2019, 16:00
added 1 commit
Compare with previous version
In GitLab by @xyen on Nov 30, 2019, 16:05
added 1 commit
a840e452- d3d9exhook: refactor d3d9ex hook from sdvxhook2 to shared libraryCompare with previous version
Nit: Documentation
Nit: Documentation
Nit: Documentation
Is that a TODO you missed? And is that even possible here?
What's the reason for still keeping this method hooked?
Moving the d3d9ex hooking code to a separate (static) module is a good idea, well done.
In GitLab by @xyen on Dec 1, 2019, 03:42
Commented on src/main/d3d9exhook/d3d9ex.c line 98
In the future, we may wanna override the monitor id still, or fake additional monitors.
In GitLab by @xyen on Dec 1, 2019, 03:46
resolved all threads
In GitLab by @xyen on Dec 1, 2019, 03:46
Commented on src/main/d3d9exhook/d3d9ex.c line 247
changed this line in version 6 of the diff
In GitLab by @xyen on Dec 1, 2019, 03:46
added 1 commit
f69f0a8b- sdvxhook2: add some minor documentation to config-gfx.hCompare with previous version
LGTM now. Feel free to merge.
In GitLab by @xyen on Dec 1, 2019, 14:05
merged