Wine (Linux) Users: Try this.

General discussion about Defcon

Moderator: Defcon moderators

DyslexicDeity
level1
level1
Posts: 17
Joined: Sun May 14, 2006 3:04 am
Location: Defcon 1

Wine (Linux) Users: Try this.

Postby DyslexicDeity » Wed Jan 10, 2007 2:01 am

It seems that everything in Defcon works fine under Wine, with the exception of joining games. As this is a rather major problem, and IV haven't fixed the bug (they pass a value instead of a pointer to a value) in Defcon, I've written a (very) crappy hack for Wine.
(Valid in Wine 0.9.28)

In /dlls/ws2_32/socket.c, line 2489 (WS_ioctlsocket) add this:

Code: Select all

    if (argp <= 0xFF)
    {
        WS_u_long temp_argp = (WS_u_long)argp;
        argp = &temp_argp;
        WARN("WS_ioctlsocket: argp < 255. Assuming data, not pointer.\n");
    }


It's ugly, It's messy, but it lets you join network games (for me at least).
alphager
level3
level3
Posts: 400
Joined: Fri Jul 28, 2006 1:36 pm
Location: Germany
Contact:

Postby alphager » Wed Jan 10, 2007 3:13 am

Are you using vanilla wine or a distro-specific version?
at least under ubuntu 6.10 and debian etch defcon runs perfectly
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Wed Jan 10, 2007 3:39 am

On an entirely unrelated note, with regards to your nick: does that make you a dog?

xander

Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests