Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Advice] Determine if proper DLL loaded into process. #1055

Open
r3538987 opened this issue Nov 1, 2024 · 4 comments
Open

[Advice] Determine if proper DLL loaded into process. #1055

r3538987 opened this issue Nov 1, 2024 · 4 comments

Comments

@r3538987
Copy link

r3538987 commented Nov 1, 2024

As audio in general more subjective, and varies per person, detecting if your configured setup loaded correctly may require additional checks.

What would be your way to visually see that your copied files into folder got actually loaded in.

Setup:
Windows 10 22H2, with OpenAL installed.

Here is sample, which started my doubts (via SystemInformer) :
Splinter Cell 1
image
Splinter Cell 3 Chaos Theory
image

At some point I did applied EAX_Restore registry fix, which added dsound.dll keys for few paths. https://i.imgur.com/78HrPFP.png
After tinkering with Creative ALchemy, seems it added few entries (ones from %SystemRoot%).

Now I'm looking into first screenshot, and there is two dsound.dll files mentioned, and one is from system32. This makes me think, that maybe whole EAX restoring procedure doesn't work on my end, because wrong file is loaded in.

@ThreeDeeJay
Copy link
Contributor

IDrinkLava didn't mention issues loading DSOAL's dsound.dll from the game folder in his video.
So maybe you missed some registry keys from here: https://www.indirectsound.com/registryIssues.html
I made a script to automate the process, which includes even more keys here: kcat/dsoal#34 (comment)

There are rare cases of games that seem to hardcode the DLL path so they might load the system one, but the tweak above should work with most.

As for checking which DLL are being loaded by the game, I use API Monitor, which is also useful to see if/which API calls are being made.
image-1

@mirh
Copy link

mirh commented Dec 4, 2024

You are probably getting different results because you are running one of the two games as an administrator.
But isn't the log file just enough to know whether it worked or not?
EDIT: actually it may even be that one game uses eax unified and the other doesn't

p.s. sooner or later it would be cool if somebody could make a 2.0 registry fix with the auto-elevating batch magic.

@ThreeDeeJay
Copy link
Contributor

ThreeDeeJay commented Dec 5, 2024

EDIT: actually it may even be that one game uses eax unified and the other doesn't

@mirh Apparently the both do
https://steamdb.info/depot/13561/
image
https://steamdb.info/depot/13571/
image

p.s. sooner or later it would be cool if somebody could make a 2.0 registry fix with the auto-elevating batch magic.

Wait, did someone find which registry keys to patch to fix EAX/DS3D wrapper loading in those few pesky games that still load dsound.dll from the system folder even after using my script?

@mirh
Copy link

mirh commented Dec 5, 2024

No, because if a game explicitly asks for a specific absolute path that's it (minus perhaps the dllinject hypothesis that still wasn't tested.. and AppInit_DLLs maybe, but I don't even want to think to it). Even though I suppose then it should be fairly easy to hex patch them.

I just meant you adding the reg_own magic to the .bat, so that it's pretty much just a double click to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants