Commit graph

1613 commits

Author SHA1 Message Date
sezero
c386f96e79 oslibs, codecs: rebuilt libvorbis for macosx after applying commit 68ebc89 from mainstream.
(the changeset only affects LP64 systems, so only x86_64-apple-darwin needed a rebuild.)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1432 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-22 18:02:44 +00:00
ewasylishen
99686c6164 raise CON_TEXTSIZE from 64KB to 1MB
useful for capturing debug info e.g. "entities" command which prints
a lot.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1431 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-22 01:56:38 +00:00
sezero
c4c17335de oslibs, codecs: rebuilt mpg123 for macosx and windows:
- applied fixes/updates from mainstream svn up to rev. 4304.
- fixed configury bug for i?86-apple-darwin* which prevented
  asm optimizations from being built in.
- disabled ICY parsing which we don't need at all.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1430 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-20 00:03:29 +00:00
ewasylishen
73a5d27bf3 Update changelog (not yet generated html/txt).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1429 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-19 05:41:06 +00:00
ewasylishen
abd8779b69 Add "find" as an alias for "apropos" (for consistency with MarkV)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1428 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-19 05:40:54 +00:00
ewasylishen
c51eef74f3 Host_Randmap_f: print the map being started
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1427 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-19 05:40:37 +00:00
sezero
de1d282bc1 oslibs: rebuilt all win64 libraries with an updated toolchain.
toolchain updates include :
- applies the pseudo-reloc patch from mingw-w64 git/master (commit 1259532)
- fixes a badly merged bfd patch.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1426 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-14 00:05:35 +00:00
sezero
6757794514 oslibs, codecs: rebuilt mpg123 after applying two fixes from mainstream
including a fix for CVE-2017-11126.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1425 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-11 14:02:45 +00:00
sezero
d333319435 oslibs: update FLAC/stream_decoder.h from xiph git. rebuilt mpg123 with another fix from mainstream.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1424 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-03 09:47:19 +00:00
sezero
45e543a47f oslibs: rebuilt libmad for windows and macosx:
- previous windows builds seem to have missed the '--disable-debugging'
  configury switch.
- used dllexport/dllimport or visibility attributes to export only the
  relevant symbols.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1423 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-30 22:20:15 +00:00
sezero
a88f1f4ad3 oslibs, codecs: rebuilt libmpg123 after applying fixes from mpg123 svn
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1422 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-30 14:10:17 +00:00
sezero
372a6e839b oslibs: rebuilt ogg/vorbis for windows and macosx
- used dllexport/dllimport or visibility attributes when building vorbis
- applied commit 14920bae03 from xiph.org ogg git repo
- applied commit e5b1378996 from xiph.org vorbis git repo

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1421 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-28 11:05:57 +00:00
ewasylishen
1276a626fe raise MAX_MAP_LEAFS to 80000 to handle ad_sepulcher.bsp
TODO: maybe switch to malloc'ed pvs arrays now?

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1420 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-24 07:23:46 +00:00
ewasylishen
ac22b41406 Xcode project: set tab width to 8
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1419 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 23:22:09 +00:00
ewasylishen
3e0ccccb50 host_cmd.c: Add "randmap" command, requested by Barnak
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1418 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 23:22:00 +00:00
ewasylishen
e333e14cb6 Com_game_f: try execing quake.rc automatically..
Not convinced there are any issues with this, and it solves these
problems:
- change to new gamedir without execing quake.rc and exit: the
  config.cfg in the new gamedir will be clobbered with the settings
  from the previous gamedir.
- discrepancy between -game command line arg and "game" command.

Video mode is locked during the "exec quake.rc" to prevent the mode
from changing.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1417 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 22:02:49 +00:00
ewasylishen
b1929b32ce Modlist_Init: relax tests for mod directories
Consider any subdirectories of the com_basedir as mods, except for
.app bundles on posix systems. Previous code was too strict
as it required progs.dat or pak files, so it excluded map packs, etc.
(useful mods could contain almost anything, e.g. just a music directory,
just a config...)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1416 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 22:02:40 +00:00
sezero
acc84717b1 pr_exec.c, MAX_STACK_DEPTH: increase from 32 to 64
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1415 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 15:47:01 +00:00
ewasylishen
67ebee2350 PF_lightstyle: make invalid style a warning instead of a Host_Error
Allows loading start.bsp in xmen TC again.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1414 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-22 03:32:14 +00:00
sezero
525cb5422a oslibs, codecs: rebuilt libmikmod from latest 3.3.11.1 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1413 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-21 11:15:22 +00:00
sezero
bdd19b4ae4 oslibs, codecs: rebuilt libmikmod from latest 3.3.11 release
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1412 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-14 11:05:02 +00:00
ewasylishen
943c105cc9 Move filelist_item_t struct to quakedef.h, instead of redefining
it in console.c and host_cmd.c

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1411 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-12 02:18:55 +00:00
sezero
212b28ca0c SDL1.2: rebuilt after applying patch for SDL bug #3593.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1410 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-01 18:00:16 +00:00
ewasylishen
087ecdfce6 console.c: use q_snprintf for printing version number
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1409 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-05-29 06:54:14 +00:00
ewasylishen
0481dd45b3 Add QUAKESPASM_VER_SUFFIX macro for marking betas/dev builds.
Refactor printing of QUAKESPASM_VERSION/QUAKESPASM_VER_PATCH to use a new
QUAKESPASM_VER_STRING macro.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1408 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-05-29 04:17:49 +00:00
ewasylishen
39e861590f VID_SetMode: SDL2: stay on the current display when changing modes
This allows you to move the QS window to a different monitor and
then go fullscreen on that monitor. QS will still always start on
the primary monitor.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1407 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-05-27 07:29:49 +00:00
ewasylishen
559c8bb5fc new r_scale cvar, for rendering the 3D view at 1/2, 1/3, or 1/4 res.
This is for emulating a low-resolution pixellated look,
or possibly as a performance boost on slow graphics cards.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1406 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-05-26 20:37:48 +00:00
ewasylishen
0b55e95c79 Host_Loadgame_f: fix for arrow characters appearing in multiline messages
on Windows, a regression introduced in the Host_Loadgame_f rewrite r1398

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1405 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-05-09 00:01:41 +00:00
sezero
14dec7d4a3 tiny tidy-ups to snd_flac
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1404 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-30 08:51:34 +00:00
ewasylishen
53a0b37906 UDP_Init: don't bother calling gethostbyname() if our hostname ends in ".local"
(a macOS thing), because it blocks for a few seconds and then fails
(on my system anyway), so it's pointless.

Fixes an annoying startup pause on macOS, which was reported as
https://sourceforge.net/p/quakespasm/bugs/15/

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1403 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-26 01:38:38 +00:00
ewasylishen
eb2701a484 PF_VarString: throttle "exceeds standard limit" warning message
Prevents console spam on "developer 1" if a mod calls PF_VarString often (e.g. In the Shadows textbooks).

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1402 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-25 20:07:34 +00:00
sezero
95fca75a77 rebuild libFLAC for OSX (version from previous commit was broken.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1401 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-25 20:03:22 +00:00
ewasylishen
53ea710a74 Cbuf_Init: raise cmd_text from 8k to 256k to handle large .cfgs, from QS-Spike
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1400 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-21 20:43:05 +00:00
sezero
1f3d93089e oslibs: rebuilt flac decoder after applying commit 4f47b63 from mainstream.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1399 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-16 08:56:33 +00:00
ewasylishen
cab2977c40 Host_Loadgame_f: rewritten version loads the whole .sav into memory
+ avoids "Loadgame buffer overflow" when loading saves from QS-Spike/DarkPlaces containing large comments
+ removes ugly } hack
+ should be a bit faster as we avoid calling fgetc for every byte

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1398 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-16 02:53:06 +00:00
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