djhackersdev / bemanitools

Runs recent Konami arcade games and emulates various arcade hardware.
The Unlicense
88 stars 17 forks source link

sdvxhook2: Add sdvxhook2 - [merged] #113

Closed icex2 closed 1 year ago

icex2 commented 4 years ago

In GitLab by @xyen on Nov 26, 2019, 22:02

Merges sdvxhook2 -> master

Pretty self-explanatory.

icex2 commented 4 years ago

In GitLab by @tudor on Nov 26, 2019, 22:03

Commented on dist/sdvx5/gamestart.bat line 16

sdvxhook2? or sdvxhook5?

icex2 commented 4 years ago

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

icex2 commented 4 years ago

In GitLab by @xyen on Nov 26, 2019, 22:04

added 1 commit

Compare with previous version

icex2 commented 4 years ago

In GitLab by @xyen on Nov 26, 2019, 22:04

resolved all threads

icex2 commented 4 years ago

Nit: Copy/paste leftover: IIDX ACIO bus

icex2 commented 4 years ago

Include order: System includes with <...> before project/local includes with "..."

icex2 commented 4 years ago

Nit: Empty line before control block

icex2 commented 4 years ago

Nit: leading underscore to function name?

icex2 commented 4 years ago

Style: Make variable names of struct lower-case

icex2 commented 4 years ago

Is this really a thing we need for sdvxhook2 as well? Hard to believe considering this was required with IIDX 16 initially.

icex2 commented 4 years ago

Nit: Missing newline after control block

icex2 commented 4 years ago

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:

icex2 commented 4 years ago

"Disable BIO2 emulation and enable usage of real BIO2 hardware on COM4"

icex2 commented 4 years ago

Some general notes:

icex2 commented 4 years ago

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.

icex2 commented 4 years ago

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

icex2 commented 4 years ago

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

icex2 commented 4 years ago

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

icex2 commented 4 years ago

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

icex2 commented 4 years ago

In GitLab by @xyen on Nov 30, 2019, 15:12

added 1 commit

Compare with previous version

icex2 commented 4 years ago

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.

icex2 commented 4 years ago

In GitLab by @xyen on Nov 30, 2019, 15:15

resolved all threads

icex2 commented 4 years ago

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

icex2 commented 4 years ago

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

icex2 commented 4 years ago

In GitLab by @xyen on Nov 30, 2019, 16:00

added 1 commit

Compare with previous version

icex2 commented 4 years ago

In GitLab by @xyen on Nov 30, 2019, 16:05

added 1 commit

Compare with previous version

icex2 commented 4 years ago

Nit: Documentation

icex2 commented 4 years ago

Nit: Documentation

icex2 commented 4 years ago

Nit: Documentation

icex2 commented 4 years ago

Is that a TODO you missed? And is that even possible here?

icex2 commented 4 years ago

What's the reason for still keeping this method hooked?

icex2 commented 4 years ago

Moving the d3d9ex hooking code to a separate (static) module is a good idea, well done.

icex2 commented 4 years ago

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.

icex2 commented 4 years ago

In GitLab by @xyen on Dec 1, 2019, 03:46

resolved all threads

icex2 commented 4 years ago

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

icex2 commented 4 years ago

In GitLab by @xyen on Dec 1, 2019, 03:46

added 1 commit

Compare with previous version

icex2 commented 4 years ago

LGTM now. Feel free to merge.

icex2 commented 4 years ago

In GitLab by @xyen on Dec 1, 2019, 14:05

merged