djhackersdev / bemanitools

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

sdvxio-kfca and sdvxhook2 updates - [merged] #209

Closed icex2 closed 1 year ago

icex2 commented 2 years ago

In GitLab by @xyen on Mar 15, 2022, 08:42

_Merges sdvx_miscupdates -> master

sdvxio-kfca:

sdvxhook2:

tested locally

icex2 commented 2 years ago

What's up with this?

icex2 commented 2 years ago

Same here

icex2 commented 2 years ago

Nit: Somewhat superfluous, the if-block is very self-explanatory, imo.

icex2 commented 2 years ago

What's the impact of this change, considering the return value is a different one now? If none, then I am wondering if the return value is even evaluated correctly.

icex2 commented 2 years ago

Nit: The implementation for the volume config values looks to me like a standard way for setting the volume rather than an override as the default is always 0. I would just call it config_kfca.main_volume etc. in the struct and config file instead.

icex2 commented 2 years ago

In GitLab by @xyen on Mar 16, 2022, 24:10

Commented on src/main/sdvxio/sdvxio.c line 70

sdvxhook never actually checked the result of this function, and so it succeeded, but other use-cases check the return, and ran into issues when using btools stock sdvxio.

icex2 commented 2 years ago

In GitLab by @xyen on Mar 16, 2022, 24:50

Commented on src/main/sdvxhook2/nvapi.c line 50

changed this line in version 2 of the diff

icex2 commented 2 years ago

In GitLab by @xyen on Mar 16, 2022, 24:50

Commented on src/main/sdvxhook2/nvapi.c line 41

changed this line in version 2 of the diff

icex2 commented 2 years ago

In GitLab by @xyen on Mar 16, 2022, 24:50

Commented on src/main/sdvxhook2/dllmain.c line 160

changed this line in version 2 of the diff

icex2 commented 2 years ago

In GitLab by @xyen on Mar 16, 2022, 24:50

added 1 commit

Compare with previous version

icex2 commented 2 years ago

In GitLab by @xyen on Mar 16, 2022, 24:50

resolved all threads