[Bug 18991] Sims 3 crash loading a Town

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Jul 19 22:01:22 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=18991





--- Comment #30 from Pablo Marchant <pamarca at gmail.com>  2009-07-19 22:01:15 ---
I just found a dirty hack that makes the game work. Its pretty dirty, so it
will certainly affect other apps, however, with this, The Sims 3 doesnt crash
and I can play it (no crashes yet).

Id submit a patch to this, but I dont know how to do them! So, ill just mention
how I did it. In the source of wine 1.1.26, modify the file dlls/ntdll/time.c
In line 220 of that file, add this line:

day=1;

So the final code around line 220 looks like this:

        /* done */
        day=1;
        Time->QuadPart = (((((LONGLONG) day * HOURSPERDAY +

Then compile, install, and it should work. From what I can see, this is a
pretty dirty hack, since I override all the code used to specify the day in the
date. However, it fixes the game (for now...). Hope this info can help someone
create a decent fix.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list