Commit Graph

1378 Commits

Author SHA1 Message Date
ewasylishen 88e0986532 ED_ParseGlobals: switch strcpy() to q_strlcpy() to avoid crashing on certain bogus .sav's
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1397 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-15 22:18:41 +00:00
ewasylishen 87a7f01f75 Host_Loadgame_f: block relative paths, like Host_Savegame_f does
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1396 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-09 20:42:22 +00:00
sezero f01ba4b8d8 oslibs, codecs: rebuilt libmikmod from the mainstream source repo.
changes include: fixes lots of possible crashes in several module
loaders and in mmcmp depacker with malformed files. fixes possible
endless loop in the IT loader with malformed files.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1395 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-08 08:50:29 +00:00
ewasylishen 6eb4b061a3 gl_refrag.c: Hunk-allocate efrags and trim out unused functionality
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1394 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-02 19:39:18 +00:00
ewasylishen 9bdd336708 Add "apropos" command from QS-Spike
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1393 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-02 18:18:57 +00:00
ewasylishen df624cbbb8 CRC_Block: make input pointer const. From QS-Spike
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1392 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-02 07:14:53 +00:00
ewasylishen 4141dc75ae net_defs.h: add a preprocessor assertion that NET_MAXMESSAGE is sane
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1391 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-02 00:45:00 +00:00
ewasylishen 9301c512b2 PF_lightstyle: add bounds check to avoid clobbering memory
Found when trying to load e1-4.bsp from https://github.com/plankatron/quakemash

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1390 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-01 21:31:07 +00:00
ewasylishen e2ee7b1a95 BoundPoly: fix infinite recursion when loading e1-4.bsp from https://github.com/plankatron/quakemash
Fix from QS-Spike.
TODO: replace all 9999.. constants used for min/max calculations with FLT_MAX/-FLT_MAX

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1389 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-01 21:31:00 +00:00
ewasylishen b9c66a66aa client.h: raise MAX_STATIC_ENTITIES further to 4096, and MAX_EFRAGS from 4096 to 8192
this is for a limit breaking map in developement. TODO: these can both be made dynamically
allocated, MarkV has applied this patch.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1388 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-31 00:56:13 +00:00
ewasylishen 2231abe440 client.h: raise MAX_STATIC_ENTITIES from 512 to 2048
Rationale is AD was hitting this and just using non-static ents instead, which is counterproductive.
2048 matches QS-Spiked.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1387 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-30 20:35:31 +00:00
ewasylishen 600f65033d Adjust "exceeds standard limit of" debug warnings to include the actual QS limit.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1386 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-30 06:26:16 +00:00
sezero dc5c936387 f...ing windows and unicode and compat and .....
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1385 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-14 07:56:39 +00:00
sezero 4d4800785f sys_win.c: properly check the returned value from GetCurrentDirectory()
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1384 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-10 20:01:47 +00:00
sezero 52da7ede44 oslibs, codecs: rebuilt opus with only decoder interfaces included.
rebuilt flac without unnecessary metadata interfaces. rebuilt libxmp
from the 'lite' version.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1383 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-09 22:47:14 +00:00
sezero b6e5747203 oslibs, codecs: remove unnecessary FLAC/metadata.h
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1382 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-09 22:42:37 +00:00
sezero 5c771f2a8f snd_flac.c: removed unnecessary metadata.h include. fixed build and
run against legacy flac <= 1.1.2 with LP64 systems.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1381 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-09 22:41:55 +00:00
sezero df4b1a1e0e snd_xmp.c: fix windows static linkage to libxmp.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1380 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-09 22:41:17 +00:00
sezero 73567c84a8 oslibs,codecs: minor update to opus_defines.h
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1379 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-26 11:11:43 +00:00
sezero 5b5bf6ce84 rebuilt SDL2 after applying changesets r10883 and r10887 from SDL repo.
I doubt that we'd ever hit those bugs, but whatever.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1378 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-15 23:03:35 +00:00
sezero fc4f783784 added _WINSOCK_DEPRECATED_NO_WARNINGS among the preprocessor definitions
in Visual Studio project files.  fixes C4996 warnings: "'inet_ntoa': Use
inet_ntop() or InetNtop() instead" from VS2013 and newer.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1377 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-14 11:00:29 +00:00
sezero 0be6595ceb work-around VS2015 stdio issue for SDL1.2 builds: add SDL_win32_main.c
to the source tree, build it everytime with MSVC in SDL1.2 builds, and
remove SDLmain.lib. (see: http://stackoverflow.com/questions/30412951 )

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1376 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-13 14:39:37 +00:00
sezero e9d1a94c91 rebased our windows & macosx SDL2 builds to SDL mercurial repo rev.10881
note: the osx leak from https://bugzilla.libsdl.org/show_bug.cgi?id=2157
is still there, we can rebuild if it ever gets fixed..

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1375 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-12 08:20:38 +00:00
sezero 52bd6a336d oslibs, codecs: rebuilt opus-1.0.3 after applying the CVE-2017-0381 fix
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1374 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-25 18:47:45 +00:00
ewasylishen 53cb142618 in_debugkeys: print time, and log text input mode changes
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1373 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-17 22:39:19 +00:00
ewasylishen ac52a42965 Add autocompletion for "timedemo" command's demo name
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1372 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-17 22:38:12 +00:00
sezero 5e61e2034f rebased our windows & macosx SDL2 builds to SDL mercurial repo rev.10735
note: the osx leak from https://bugzilla.libsdl.org/show_bug.cgi?id=2157
is still there, we can rebuild if it ever gets fixed..

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1371 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-01 17:14:12 +00:00
sezero 4727d94353 oslibs, codecs: rebuilt libxmp for macosx and windows from latest src.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1370 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-01 14:58:27 +00:00
sezero 555eeb5d00 rebased our windows & macosx SDL2 builds to SDL mercurial repo rev.10712
note: the osx leak from https://bugzilla.libsdl.org/show_bug.cgi?id=2157
is still there, we can rebuild if it ever gets fixed..

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1369 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-20 07:10:07 +00:00
sezero 59cdde0f71 rebased our windows & macosx SDL2 builds to SDL mercurial repo rev.10710
note: the osx leak from https://bugzilla.libsdl.org/show_bug.cgi?id=2157
is still there, we can rebuild if it ever gets fixed..

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1368 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-18 20:05:14 +00:00
sezero 2b9924798a add missing SDLCALL to SDL callback functions (it need not be nothing for every platform.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1367 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-17 12:10:07 +00:00
sezero 6dfe560e4c rebased our windows & macosx SDL2 builds to SDL mercurial repo rev.10700
note: the osx leak from https://bugzilla.libsdl.org/show_bug.cgi?id=2157
is still there, we can rebuild if it ever gets fixed..

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1366 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-12 14:01:38 +00:00
sezero 7f122db10e oslibs, codecs: rebuilt libxmp from latest sources.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1365 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-12 08:25:07 +00:00
sezero c79f121b81 added tracker music support using libxmp >= v4.2.0 (off by default.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1364 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-07 09:24:49 +00:00
sezero 7078ee136d sync'ed arch_defs.h and filenames.h with uhexen2 tree (for sake of symmetry.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1363 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-07 06:55:04 +00:00
sezero ce69b9c633 oslibs, codecs: rebuilt the FLAC decoder for windows and macosx after
fixing a number typo.

oslibs, codecs: killed all binary blobs for libmodplug. the library is
full of insecurities, mistakes, etc, neither is it endian-correct. the
snd_modplug.c code is still there if one ever wants to build it though.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1362 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-07 06:50:04 +00:00
sezero 89cf6ee0b7 rebuilt SDL2 for macosx from SDL2 hg repo r10670 so that it works on 10.6 again.
(https://bugzilla.libsdl.org/show_bug.cgi?id=3503)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1361 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-02 09:50:02 +00:00
sezero 2d5a0f7421 rebuilt SDL2 for windows and macosx from SDL hg rev. 10668
(the osx leak from https://bugzilla.libsdl.org/show_bug.cgi?id=2157
is still there.)


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1360 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-01 15:28:13 +00:00
sezero 4e03f51889 rebuilt SDL2 for windows and macosx from SDL hg rev. 10602, which
has some bug fixes and game controller updates since release-2.0.5.
the osx leak from https://bugzilla.libsdl.org/show_bug.cgi?id=2157
is still there: we can rebuild if it ever gets fixed..

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1359 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-11-11 14:11:22 +00:00
sezero 8a2bfbd51a oslibs, codecs: rebuilt libmodplug after a bug fix.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1358 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-11-10 19:29:02 +00:00
ewasylishen c0b229aa37 Only print "maps/*.lit loaded" messages on develoepr 2, the are spam on developer 1.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1357 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-22 18:38:58 +00:00
ewasylishen 1aa19ebc2b QuakeSpasm.xcodeproj: copy quakespasm.pak/license/readmes to build products directory
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1356 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-22 18:38:42 +00:00
ewasylishen 5d9555cc0e QuakeSpasm.xcodeproj: make this Xcode project deployment target 10.6, even for the SDL1.2 target. The other Xcode project can be used for building 10.4 compatible builds
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1355 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-21 20:26:33 +00:00
sezero a3df27a02d oslibs, codecs: rebuilt libmodplug for macos_x and windows from
https://github.com/sezero/libmodplug.git / sezero_no_cxx branch:
- remove C++ (libstdc++) dependencies,
- Fix handling of single-row loops to prevent endless loops.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1354 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-20 14:56:48 +00:00
sezero bf5687be4f Makefile.darwin: removed bundle1.o from 10.6/i386 linkage (crashes. only needed for x86_64.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1353 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-16 09:32:25 +00:00
sezero 7a20cf887b rebuilt SDL2 for macosx after reverting https://hg.libsdl.org/SDL/rev/d19f7d2b6ec8 for now, to prevent the crashes observed on 10.6.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1352 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-16 08:50:28 +00:00
sezero 4b5cf398f6 - rebuilt SDL2 for windows and osx from SDL hg rev.10541
to prepare for and test their upcoming 2.0.5 release.
- changed Makefile.darwin so that SDL2-386 builds target
  10.6+ which is an SDL2-2.0.5 requirement.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1351 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-15 19:28:47 +00:00
sezero da696d0b51 changed version to 0.92.2, added placeholders for changelog in the readme.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1350 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-14 09:47:07 +00:00
ewasylishen 9a0ceb9117 Xcode project: set deployment target to 10.6 for QuakeSpasm-SDL2
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1349 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-13 20:31:48 +00:00
ewasylishen 985ead4ea9 macOS: omit the SDLApplication class under SDL2.
SDL2 has an SDLApplication class internally which does the same thing. Fixes this warning:

objc[34880]: Class SDLApplication is implemented in both [...]/QuakeSpasm-SDL2.app/Contents/Frameworks/SDL2.framework/Versions/A/SDL2 (0x10365b5a0) and [...]/QuakeSpasm-SDL2.app/Contents/MacOS/QuakeSpasm-SDL2 (0x1002708e8). One of the two will be used. Which one is undefined.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1348 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-10-13 20:05:26 +00:00