[quake3] second win64 patch

Ludwig Nussel ludwig.nussel at suse.de
Thu Feb 23 05:47:25 EST 2006


On Wednesday 22 February 2006 04:23, James Lacey wrote:
> I guess this is too late for the code freeze, but this patch makes the
> code 64-bit safe on Windows (plus adds a few changes necessary to
> compile on Win64). Per Ludwig's suggestion, I didn't change any int
> variables to size_t. So if you are working on something that requires
> more than 2 GB of memory (since the malloc functions take ints), then
> you are out of luck ;)
> 
> Some notes:
> 1. Team Arena compiles cleanly with this patch. I played a map of
> Quake 3 and a map of TA with the MSVC Win32 binary and it seemed to
> work fine.
> 2. OpenAL is reenabled.
> 3. I included two versions of the patch, one with just the code
> changes and one that includes the new VS 2005 project file changes. I
> disabled the more prevalent warnings (i.e. possible data loss from
> size_t to int) in the project file, so if you are compiling on the
> command line, you will see a lot of warnings.
> 4. The game is currently broken on x64. It hangs on startup. That is
> my next problem to tackle. I just wanted to go ahead and submit this
> patch since the last intptr_t changes Ludwig committed broke someone's
> build.

How can it be 64bit clean and hang at startup at the same time? :-)
Are both vm mode 0 (dll) and 1 (interpreter) broken or does one of
them work?

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/




More information about the quake3 mailing list