Commit graph

300 commits

Author SHA1 Message Date
Ludwig Nussel
64025e68f0 fix warning about cast from integer to pointer 2005-11-27 15:01:56 +00:00
Tim Angus
68a59e1c93 * Moved win32 GL extension prototypes from tr_init.c to win_qgl.c 2005-11-26 17:51:26 +00:00
Tim Angus
382c6adb54 * Disable ccache by default. If you want it, add USE_CCACHE=1 to Makefile.local
* Remove -gfull from linux section in Makefile -- it's darwin only
* Cast away some warnings that surfaced from using "new" AL headers
* Various whitespace and consistency fixes
2005-11-26 15:01:28 +00:00
Ryan C. Gordon
877f360812 SDL and OpenAL headers. 2005-11-26 07:59:00 +00:00
Ryan C. Gordon
721b9a7d01 Mac OS X work...lots of little changes that touch a lot of random places.
Still work to be done, but this at least matches the PowerPC Linux status
 now.

MacOS-specific directory (and XCode project) is gone...this now uses SDL,
 OpenAL, and the Unix Makefiles.

--ryan.
2005-11-26 07:46:21 +00:00
Ryan C. Gordon
b20b86bbbe Don't byteswap when resampling audio...we byteswapped it previously in the
codecs.
2005-11-20 15:35:45 +00:00
Ludwig Nussel
108c051345 make internal functions static 2005-11-19 14:53:46 +00:00
Tim Angus
fee4381e18 * Remove the debug text that nobody seemed to notice 2005-11-19 02:14:34 +00:00
Tim Angus
82893aebc9 * Bleh.. whitespace 2005-11-16 20:25:36 +00:00
Tim Angus
387d8041ce * Partial implementation of FS_Seek for files in pk3s
* A couple of RIFF decoder tweaks/fixes
2005-11-16 20:23:37 +00:00
Tim Angus
736d34c989 * Small "bug" fix to MSG_WriteBits 2005-11-15 23:49:14 +00:00
Tim Angus
b5c7d9dcd7 * Implementation of r_dlightBacks from Shane Isley 2005-11-15 23:30:35 +00:00
Tim Angus
47c70ae076 * ... 2005-11-15 22:22:45 +00:00
Tim Angus
6be591daa1 * Don't link OpenAL against q3ded 2005-11-15 22:09:45 +00:00
Tim Angus
25785fe0e6 Potential fix to https://bugzilla.icculus.org/show_bug.cgi?id=2486 2005-11-15 17:02:45 +00:00
Tim Angus
0163f77f4e * Oops, missed a bit 2005-11-14 18:35:31 +00:00
Tim Angus
9d7bb06743 * Replace a redundant function in the wav decoder 2005-11-14 18:26:25 +00:00
Tim Angus
e8a953fea6 * Quiet some warnings on OS X 2005-11-13 23:05:00 +00:00
Tim Angus
668fdc102c * Unbreak the MinGW build more...
* Unbreak USE_OPENAL_DLOPEN=1
2005-11-13 22:16:24 +00:00
Tim Angus
33c1528673 * Unbreak the MinGW build 2005-11-13 21:23:16 +00:00
Ludwig Nussel
1c2722a9ba link against libopenal by default rather than dlopening it 2005-11-13 21:01:44 +00:00
Ludwig Nussel
17719e0c61 soname is libopenal.so.0 2005-11-13 21:01:07 +00:00
Tim Angus
84c4f21082 * OpenAL support, from BlackAura aka Stuart Dalton <badcdev@gmail.com>
+ An abstract codec system, simplifying support for new formats
  + Changes versus BlackAura's patch:
    o Consolidated the OpenAL parts into one file
    o Changed the function naming scheme to more closely resemble Q3
    o Changed the interface to fall back on the "base" sound system
      if loading OpenAL fails
  + This is enabled on Linux and MinGW for now, but should work on the
    other *nixs with appropriate additions to the Makefile
  + NOT enabled on OS X or MSVC Windows builds
  + Probably breaks the Windows build again
* Retabulated sdl_snd.c and made the messages less verbose since
  there do not seem to be many having problems with SDL sound now
2005-11-13 18:58:14 +00:00
Ludwig Nussel
79ceef93cc store temporary files in /tmp to save space in ~ 2005-11-13 18:33:28 +00:00
Ludwig Nussel
c95d0c29e4 use common macro for alignment 2005-11-13 17:51:21 +00:00
Ludwig Nussel
bfb24584f5 - add -Wimplicit -Wstrict-prototypes CFLAGS again
- remove -pipe. not needed IMO.
2005-11-11 15:07:15 +00:00
Tim Angus
e905b369c3 * Makefile target dependancy fix 2005-11-07 17:44:05 +00:00
Tim Angus
fd9c1b00bb * Fix TA font loader to use new endian defines 2005-11-06 21:18:21 +00:00
Ludwig Nussel
b2f39d7ddd use system memcpy and memset 2005-11-06 18:22:49 +00:00
Tim Angus
5201000f39 * Ignore in_dgamouse setting if dga isn't available
* Changed status of Solaris sparc
2005-11-06 17:31:48 +00:00
Tim Angus
bbf2e36b5b * I'm so anal 2005-11-06 16:51:28 +00:00
Tim Angus
f20cca46e8 * Install the tools on every build, so a distclean isn't necessary if the tool
source changes now
* Basically rewrote the lcc Makefile to be more sane
* Removed various bits of lcc that weren't built/needed
2005-11-06 16:50:58 +00:00
Ludwig Nussel
590988222f - crash solved 2005-11-06 16:32:42 +00:00
Ludwig Nussel
cc8b03c655 - don't spam the tty with that message 2005-11-06 16:24:49 +00:00
Ludwig Nussel
48ee88ad77 - move code for standalone compilation out of vm_x86_64.c
- reset vm->compiled if something goes wrong in VM_Compile
2005-11-06 13:50:28 +00:00
Ludwig Nussel
8a18ecb961 - fall back to interpreter if VM_Compile resets vm->compiled 2005-11-06 13:46:17 +00:00
Ludwig Nussel
87b12105bc - set umask to 0077 before writing the cdkey, the rest of the world
doesn't need to read it.
2005-11-06 13:45:20 +00:00
Tim Angus
4eaebe4a31 * Tidy-up of q_platform.h
* Introduced Q3_BIG_ENDIAN and Q3_LITTLE_ENDIAN #defines
* Changed some stricmp to Q_stricmp so that #define stricmp strcasecmp could be
  removed
2005-11-06 00:29:59 +00:00
Ludwig Nussel
dfe20a177c - put ALIGN macro into q_shared.h
- yet another alignment fix for botlib
2005-11-05 19:06:10 +00:00
Tim Angus
81c1b3128b * Enable use of asm on Solaris-x86 2005-11-05 18:41:37 +00:00
Tim Angus
a31e38986c * Patch from AJ <anthonyj@planetquake.com> which replaces a bunch of hard coded
constants with #define constants
2005-11-05 15:54:56 +00:00
Tim Angus
fce1a89fad * Fix a stupid typo 2005-11-05 15:07:05 +00:00
Tim Angus
fe09cd3217 * Patch from vapier that aids packaging
* Truth value of USE_SDL changed to 1 from true, for consistency
2005-11-05 01:06:09 +00:00
Tim Angus
d41de844d3 * Oops, missed a bit 2005-11-05 00:42:28 +00:00
Tim Angus
a87185a96f * Centralise architecture defines in q_platform.h 2005-11-05 00:29:40 +00:00
Tim Angus
e4b7a04d5c * Replaced a bunch of inline and __inline with ID_INLINE
* Replaced a bunch of __i386__ with id386
* General tidy up of asm preprocessor decisions
* Removed C_ONLY from the dedicated server build
2005-11-04 22:32:00 +00:00
Zachary Slater
857a5e264e Updated msvc project files from > Michael Zoech! 2005-11-04 02:35:30 +00:00
Ludwig Nussel
b0dfb2579b found the bug. alignment reenabled. 2005-11-03 22:32:39 +00:00
Ludwig Nussel
2984b5bea2 disable the alignment "fix" until its clear why it causes crashes 2005-11-03 22:26:59 +00:00
Tim Angus
2e3a08e4bd * Juggled CFLAGS a bit so that -fno-strict-aliasing is always on 2005-11-03 18:34:03 +00:00
Ludwig Nussel
1c94cfbcbd more alignment fixes 2005-11-02 21:46:05 +00:00
Ludwig Nussel
e3e3d8b9aa actually when calling from the vm to the engine there are more than 10
arguments
2005-11-02 21:45:48 +00:00
Ludwig Nussel
5f79f9958b pass only 10 arguments. vm_* doesn't use more anyways. 2005-11-02 20:58:27 +00:00
Ludwig Nussel
3ce5d5dccd pass only 10 arguments. vm_* doesn't use more anyways. 2005-11-02 20:56:13 +00:00
Ludwig Nussel
d29dfeeb75 round string length for pointer alignment 2005-11-02 20:36:30 +00:00
Ludwig Nussel
e121614406 allocate memory pointer aligned 2005-11-02 20:34:25 +00:00
Tim Angus
3c05bf1870 * Fies to the xcode project to update it with the recent changes 2005-11-02 18:32:03 +00:00
Tim Angus
2cc87dfc9d * Removed the last of the binary target stuff from lcc (hopefully) 2005-11-02 16:05:14 +00:00
Tim Angus
2d2df7682d * Removed the lcc self tests -- there are none that test bytecode 2005-11-02 15:28:16 +00:00
Tim Angus
8b63fdab58 * Fix for lcc on windows so that it can execute files with spaces in them 2005-11-02 02:08:29 +00:00
Tim Angus
87cd6f8a93 * Split off q_platform.h from q_shared.h
* Removed lcc PATH hack and replaced with something slightly less hacky
* Removed all platform specific hostfiles from lcc and replaced with bytecode.c
  (from ankon)
* Turned lcc option "-S" on permanently
* Improved q3cpp so that it recursively adds include dirs to its list
2005-11-01 22:09:15 +00:00
Ludwig Nussel
48683c91a8 use memcpy to fix use of misaligned data 2005-11-01 19:59:14 +00:00
Ludwig Nussel
f4dbf0db95 5+2==7 :-) 2005-11-01 19:47:47 +00:00
Ludwig Nussel
39f5333862 use memcpy to fix use of misaligned data 2005-11-01 19:44:36 +00:00
Tim Angus
acf1f46a2b * More Solaris work 2005-11-01 16:05:06 +00:00
Tim Angus
0a3e96af77 * Further work on the Solaris port from Vincent S. Cojot 2005-10-31 16:46:05 +00:00
Tim Angus
3647cca9f7 * Applied https://bugzilla.icculus.org/show_bug.cgi?id=2464
* Removed rule to build C++ (for splines) from the Makefile
2005-10-30 14:36:49 +00:00
Tim Angus
c41483634c * General decrufting:
* Removed Q3_STATIC and associated defines
* Removed MAC_STATIC
* Replaced __LCC__ with Q3_VM
* Removed bspc and splines directories
2005-10-29 23:13:09 +00:00
Tim Angus
63fdc74843 * Fix to the VM interpreter on the linux ppc dedicated server 2005-10-29 22:06:43 +00:00
Tim Angus
c5bdb034f2 * Beginnings of Solaris support from Vincent S. Cojot
* Note this patch also splits USE_SDL into USE_SDL_VIDEO and USE_SDL_AUDIO
2005-10-29 22:05:20 +00:00
Ludwig Nussel
58512aff09 use memcpy for OP_BLOCK_COPY 2005-10-29 17:42:12 +00:00
Ludwig Nussel
b6228f1408 add HAVE_VM_COMPILED variable so one can override it in Makefile.local 2005-10-29 17:41:17 +00:00
Tim Angus
05e8ab9538 * Added STATUS
* Updated TODO
* Moved ChangeLog to root
* Updated ChangeLog
* s/Foobar/Quake III Arena Source Code/
* Biggest patch EVAR. I wonder how many mail boxes this will fill...
2005-10-29 01:53:09 +00:00
Tim Angus
b72f59f524 * In hindsight this is probably wise too 2005-10-29 01:02:12 +00:00
Tim Angus
ffdc69f138 * Deleted code/unix/vm_x86.c - wtf was that about anyway?
* Removed HAVE_VM_NATIVE
* Removed DLL_ONLY
* Replace HAVE_VM_COMPILED with NO_VM_COMPILED -- this means the JIT compiler
  should be enabled on the OS X and VC builds now
* Remove the remainder of the freetype building stuff
2005-10-29 00:23:10 +00:00
Tim Angus
090f4d7266 * Compiler warning fix from ankon 2005-10-28 22:10:39 +00:00
Tim Angus
4c63d1ed40 * Fix to https://bugzilla.icculus.org/show_bug.cgi?id=2454 2005-10-28 21:09:50 +00:00
Tim Angus
b1b7f975f1 * Fix the x86 vm 2005-10-27 22:38:25 +00:00
Tim Angus
556b3307c5 * ...and the other common headers 2005-10-27 22:05:38 +00:00
Tim Angus
bc9ee5644b * Ignore __attribute__ when not using gcc 2005-10-27 21:49:36 +00:00
Ludwig Nussel
0bf8e3a8b0 add x86_64 vm. experimental, not enabled by default. you need as for it
to work.
2005-10-27 21:13:47 +00:00
Tim Angus
9af615f27c * Add notional support for various architectures from vapier. Whether or not
these architectures work in practice is another matter :).
2005-10-26 23:15:44 +00:00
Tim Angus
f455a27edd * Use platform headers to source various libc prototypes instead of unsafe
static ones (from vapier)
2005-10-26 23:08:56 +00:00
Tim Angus
0167152647 * Small changes to distclean target from vapier 2005-10-26 22:59:30 +00:00
Tim Angus
c02a7fce3c * Split lcc $AR into $AR and $ARFLAGS (from vapier) 2005-10-26 22:52:17 +00:00
Tim Angus
7b84b0295f * Fixed the OS X build as broken by revision 181 2005-10-26 20:52:53 +00:00
Tim Angus
3a2ad50406 * Moved various source files from their mod sdk locations to places more
appropriate for open source Q3
* This patch looks bigger than it really is, however it will probably break the
  VC and OS X builds (easy to fix though)
2005-10-26 19:45:21 +00:00
Tim Angus
3ff42330e5 * Fixed some warnings on the OS X build 2005-10-26 19:32:15 +00:00
Tim Angus
9f55ae2dce * Fixed a bug with QVM loading on big endian architectures 2005-10-26 17:09:50 +00:00
Tim Angus
d5af2e3d45 * Removed some Conscript 2005-10-25 13:34:47 +00:00
Tim Angus
6b5cf6e248 * Fixed unused variable warning 2005-10-23 17:23:23 +00:00
Tim Angus
69b81f2bd9 * Fix to https://bugzilla.icculus.org/show_bug.cgi?id=2401 2005-10-23 17:18:23 +00:00
Ludwig Nussel
e27a35a207 remove french keyboard hack. we cannot know what this does on other
layouts
2005-10-23 15:27:59 +00:00
Ludwig Nussel
80cf67e2ac map extra mouse buttons to K_AUX* 2005-10-23 15:25:23 +00:00
Tim Angus
f01ed7b3da * Tab completed commands no longer treated like cvars 2005-10-21 19:52:52 +00:00
Tim Angus
d6b2a1e527 * Deleted some exes that were in the repository 2005-10-21 18:07:25 +00:00
Tim Angus
f306b2895f * Tiny patch to print values of cvars when tab completing ala ET 2005-10-21 00:09:34 +00:00
Tim Angus
64f167f183 * Fix to potential out of range index bug from misanthropia 2005-10-20 16:19:43 +00:00
Tim Angus
769372e2f9 * Fix to buffer overflow in lightmap loading code from misanthropia 2005-10-20 16:14:05 +00:00
Tim Angus
653c5621ac * Fixed the fix for the shader overrun. If this isn't a case for unified diffs,
I don't know what is :).
2005-10-20 01:23:17 +00:00