Commit Graph

1887 Commits

Author SHA1 Message Date
Eric Wasylishen ebe31714b2 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1407 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-05-27 07:29:49 +00:00
Eric Wasylishen 0a681bd7cd 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1406 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-05-26 20:37:48 +00:00
Eric Wasylishen c827ccaa66 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1405 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-05-09 00:01:41 +00:00
Ozkan Sezer 3d3d46887a tiny tidy-ups to snd_flac
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1404 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-30 08:51:34 +00:00
Eric Wasylishen 4bea6d51e2 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1403 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-26 01:38:38 +00:00
Eric Wasylishen f92ce77fc9 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1402 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-25 20:07:34 +00:00
Ozkan Sezer c920597816 rebuild libFLAC for OSX (version from previous commit was broken.)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1401 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-25 20:03:22 +00:00
Eric Wasylishen 3e4b9f8f6c Cbuf_Init: raise cmd_text from 8k to 256k to handle large .cfgs, from QS-Spike
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1400 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-21 20:43:05 +00:00
Ozkan Sezer 2ce62924b1 oslibs: rebuilt flac decoder after applying commit 4f47b63 from mainstream.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1399 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-16 08:56:33 +00:00
Eric Wasylishen 8011b3f9fd 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1398 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-16 02:53:06 +00:00
Eric Wasylishen 83a0b5ae14 ED_ParseGlobals: switch strcpy() to q_strlcpy() to avoid crashing on certain bogus .sav's
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1397 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-15 22:18:41 +00:00
Eric Wasylishen 1f4c3514ad Host_Loadgame_f: block relative paths, like Host_Savegame_f does
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1396 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-09 20:42:22 +00:00
Ozkan Sezer 849aee689e 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1395 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-08 08:50:29 +00:00
Eric Wasylishen a1c95a5978 gl_refrag.c: Hunk-allocate efrags and trim out unused functionality
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1394 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-02 19:39:18 +00:00
Eric Wasylishen 43b509ba4f Add "apropos" command from QS-Spike
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1393 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-02 18:18:57 +00:00
Eric Wasylishen 1c83b69cb6 CRC_Block: make input pointer const. From QS-Spike
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1392 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-02 07:14:53 +00:00
Eric Wasylishen 3cae0dae3f net_defs.h: add a preprocessor assertion that NET_MAXMESSAGE is sane
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1391 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-02 00:45:00 +00:00
Eric Wasylishen 2d394e7a29 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1390 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-01 21:31:07 +00:00
Eric Wasylishen 182369ca03 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1389 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-04-01 21:31:00 +00:00
Eric Wasylishen 198c828b03 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1388 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-31 00:56:13 +00:00
Eric Wasylishen 4b6eb1bbe2 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1387 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-30 20:35:31 +00:00
Eric Wasylishen 4fe5f6956f Adjust "exceeds standard limit of" debug warnings to include the actual QS limit.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1386 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-30 06:26:16 +00:00
Ozkan Sezer 7eedfd03fa f...ing windows and unicode and compat and .....
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1385 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-14 07:56:39 +00:00
Ozkan Sezer 8d919e5cd0 sys_win.c: properly check the returned value from GetCurrentDirectory()
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1384 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-10 20:01:47 +00:00
Ozkan Sezer 843e758305 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1383 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-09 22:47:14 +00:00
Ozkan Sezer 9a60bf8810 oslibs, codecs: remove unnecessary FLAC/metadata.h
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1382 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-09 22:42:37 +00:00
Ozkan Sezer 182ec759b8 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1381 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-09 22:41:55 +00:00
Ozkan Sezer 087222e8f5 snd_xmp.c: fix windows static linkage to libxmp.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1380 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-03-09 22:41:17 +00:00
Ozkan Sezer fd5d023e31 oslibs,codecs: minor update to opus_defines.h
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1379 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-26 11:11:43 +00:00
Ozkan Sezer d5c3058022 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1378 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-15 23:03:35 +00:00
Ozkan Sezer 3d4c9cd2b5 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1377 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-14 11:00:29 +00:00
Ozkan Sezer 306b04044e 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1376 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-13 14:39:37 +00:00
Ozkan Sezer b3135e794b 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1375 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-02-12 08:20:38 +00:00
Ozkan Sezer 503f9b3321 oslibs, codecs: rebuilt opus-1.0.3 after applying the CVE-2017-0381 fix
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1374 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-25 18:47:45 +00:00
Eric Wasylishen 702b0decf1 in_debugkeys: print time, and log text input mode changes
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1373 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-17 22:39:19 +00:00
Eric Wasylishen 197127fc97 Add autocompletion for "timedemo" command's demo name
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1372 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-17 22:38:12 +00:00
Ozkan Sezer 2baee92202 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1371 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-01 17:14:12 +00:00
Ozkan Sezer 73cf6c88eb oslibs, codecs: rebuilt libxmp for macosx and windows from latest src.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1370 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-01-01 14:58:27 +00:00
Ozkan Sezer a0f0c5683f 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1369 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-20 07:10:07 +00:00
Ozkan Sezer e0f66533b7 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1368 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-18 20:05:14 +00:00
Ozkan Sezer bc5cc7094a add missing SDLCALL to SDL callback functions (it need not be nothing for every platform.)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1367 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-17 12:10:07 +00:00
Ozkan Sezer 8d531519fe 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1366 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-12 14:01:38 +00:00
Ozkan Sezer cb8a1b1e34 oslibs, codecs: rebuilt libxmp from latest sources.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1365 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-12 08:25:07 +00:00
Ozkan Sezer 5025e9e457 added tracker music support using libxmp >= v4.2.0 (off by default.)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1364 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-07 09:24:49 +00:00
Ozkan Sezer 6e1aa25e78 sync'ed arch_defs.h and filenames.h with uhexen2 tree (for sake of symmetry.)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1363 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-07 06:55:04 +00:00
Ozkan Sezer 219a137593 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1362 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-07 06:50:04 +00:00
Ozkan Sezer 1730afbe57 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1361 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-02 09:50:02 +00:00
Ozkan Sezer bad6a88a08 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1360 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-12-01 15:28:13 +00:00
Ozkan Sezer 5955fd38ed 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1359 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-11-11 14:11:22 +00:00
Ozkan Sezer 2b457e522b oslibs, codecs: rebuilt libmodplug after a bug fix.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1358 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-11-10 19:29:02 +00:00