Why renaming GetIpAddrTable makes Age of Mythology through Voobly work

Questions about Wine on Linux
Locked
User avatar
kaidelorenzo
Newbie
Newbie
Posts: 1
Joined: Sat Apr 02, 2022 7:00 pm

Why renaming GetIpAddrTable makes Age of Mythology through Voobly work

Post by kaidelorenzo »

Hi I successfully got Age of Mythology with Voobly working. However I can't understand why what I figured out works. Additionally, I'm hoping if I can figure it out then it could get fixed in a future release of wine.

I'm running wine 7.5 from source out of a toolbox on Fedora Silverblue 35.

The changes I made to the source code such that the game works correctly is essentially just to rename

Code: Select all

GetIpAddrTable
and update the calls to the API from

Code: Select all

socket.c
This pull request has the few changes I made to get things working:
https://github.com/stkrknds/wine-aom-voobly/pull/2

Thanks for any help. My best guess is that there is some redirection of the API that is broken but gets avoided by renaming the API.
Locked