Thread: SoD and Wine
View Single Post
  #6  
Old 04-02-2010, 05:16 PM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default

Taurinus,

The more I thought about it the directx file you talk about probably wont work. Since you need a "patched" version of the file. That is the one I uploaded to the link I provided.

From the Everquest listing on the winehq site:

Quote:
File d3dx9_30.dll is part of DirectX dll's, typically you have already put a copy of it in your Linux EQ game directory, if not make a copy from your windows install partition (usually found at /system32 folder with all other DX files) on your Linux game directory and modify the copy.

To patch the file you can use any binary editor (ghex as example -be careful, the program itself is called ghex2 instead-)

patch the file d3dx9_30.dll at offsets:

4c6f9, where there is a '83' replace it for '6a'
4c6fa, where there is a 'fe' replace it for '04'
4c6fb, where there is a '02' replace it for '5e'

save it and it's done.

As a reference the offset list from 4c6f0 before the change should read:
00 00 00 f6 45 f8 50 74 0f 83 fe 02 73 56 b8 57

And the offset list from 4c6f0 after the change should read:
00 00 00 f6 45 f8 50 74 0f 6a 04 5e 73 56 b8 57

Changing d3dx9_30.dll linux EQ local copy won't affect any other application and keeps you from 'patching' wine sorce after each release you want to upgrade to.
Obviously you could take the file you mentioned and "patch" it with the directions in the quote.
Reply With Quote