djhackersdev / bemanitools

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

Add support IIDX Resort Anthem CN (狂热节拍 IIDX) - [closed] #222

Closed icex2 closed 1 year ago

icex2 commented 2 years ago

In GitLab by @garbage on Jun 12, 2022, 18:13

Merges feature/iidx18-cn -> master

Summary

Support IIDX Resort Anthem CN (狂热节拍 IIDX)

image

Description

Add support IIDX Resort Anthem CN (狂热节拍 IIDX)

The ID is JDZ, but it is an exe format (not dll).

This game does not have network function

Also, the card reader is not checked, so it is not included in the hooks.

How Has This Been Tested?

By launching and playing the game.

Checklist

icex2 commented 2 years ago

In GitLab by @garbage on Jun 12, 2022, 18:48

Commented on src/main/iidxhook4-cn/dllmain.c line 83

3DCG used in the background causes crashing problem with NVIDIA cards.

The same problem with normal IIDX18, but it does not appear to be enabled in iidxhook4.

https://dev.s-ul.net/djhackers/bemanitools/-/blob/master/src/main/iidxhook4/dllmain.c#L61-73

icex2 commented 2 years ago

In GitLab by @garbage on Jun 12, 2022, 19:57

added 3 commits

Compare with previous version

icex2 commented 2 years ago

In GitLab by @garbage on Jun 12, 2022, 20:01

added 1 commit

Compare with previous version

icex2 commented 2 years ago

strstr(lpFileName, PATH_A) == lpFileName) I guess that works also for catching that path equals. Something I haven't seen done that way, yet. Nice learning.

icex2 commented 2 years ago

To my knowledge, that doesn't work as "." should be of type const char*. You need to use memcpy, strcpy or initilize the fixed size buffer manually, e.g. relative_path[0] = '.'; relative_path[1] = '\0'.

icex2 commented 2 years ago

Same as above, but needs to be considered for wide string type.

icex2 commented 2 years ago

Leaving another marker here.

icex2 commented 2 years ago

Oh, you are probably right. I apparently missed it there D:

I would say this needs to be added to iidxhook4 and iidxhook5 as it should also affect those games. Would you mind pushing another MR with just these two fixes? Do you happen to have an NVIDIA card where the game is currently crashing and you can test the potential fix?

icex2 commented 2 years ago

Since you don't need card readers here, we don't need this linked.

icex2 commented 2 years ago

:thumbsup:

icex2 commented 2 years ago

As I honstly don't know anything about setting this up, I tossed the iidxhook5-cn.md in there just to have it more like a place holder.

As you have the knowledge on how to set it up and what to consider, do you mind filling in this information here and on iidxhook5-cn.md?

Feel free to copy-paste from the other iidxhook readme files whatever is identical.

icex2 commented 2 years ago

Big thanks for looking into this. Probably even more niche than the older games already, but happy someone else is also making an effort to support these older titles.

icex2 commented 2 years ago

In GitLab by @xyen on Jun 14, 2022, 02:44

Commented on src/main/iidxhook4-cn/path.c line 80

https://stackoverflow.com/questions/8244453/initializing-char-array-with-smaller-string-literal

ie. it's fine.

icex2 commented 2 years ago

In GitLab by @xyen on Jun 14, 2022, 02:44

Commented on src/main/iidxhook4-cn/path.c line 112

see above comment, this is fine.

icex2 commented 2 years ago

In GitLab by @xyen on Jun 14, 2022, 02:44

Commented on src/main/iidxhook4-cn/path.c line 139

ditto

icex2 commented 2 years ago

Another learning. thanks.

icex2 commented 2 years ago

In GitLab by @garbage on Jun 14, 2022, 08:15

Commented on src/main/iidxhook4-cn/Module.mk line 16

changed this line in version 4 of the diff

icex2 commented 2 years ago

In GitLab by @garbage on Jun 14, 2022, 08:15

added 1 commit

Compare with previous version

icex2 commented 2 years ago

In GitLab by @garbage on Jun 14, 2022, 08:48

Commented on src/main/iidxhook4-cn/dllmain.c line 83

I pushed MR.

Tested using NVIDIA card with IIDX18.

https://dev.s-ul.net/djhackers/bemanitools/-/merge_requests/125

icex2 commented 2 years ago

Appreciated for the direct follow-up.

icex2 commented 2 years ago

resolved all threads

icex2 commented 2 years ago

approved this merge request

icex2 commented 2 years ago

Merged in the wrong order, so the current state is conflicting. I pulled the changes and rebased locally to fix the merge conflict. Pushed it to master already, so this is considered merged.

Thanks again.