Commit graph

4031 commits

Author SHA1 Message Date
Turo Lamminen
45ad423f2b wad: Make W_NWTDashMerge parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
08a4de5833 wad: Make W_MergeFile parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
a138539a57 wad: Make W_AddFile parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
a2b9c9c5d3 wad: Make W_OpenFile parameters const 2018-07-21 16:56:35 +03:00
Turo Lamminen
a934b69f22 wad: Make OpenFile parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
663f9f92a5 wad: Make posix MapFile filename parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
7f9e8f65a2 deh: Free result of D_TryFindWADByName in DEH_ParseCommandLine 2018-07-21 16:56:35 +03:00
Turo Lamminen
bde4ac7620 d_iwad: Make D_TryFindWADByName parameter const 2018-07-21 16:27:36 +03:00
Turo Lamminen
6a500c4269 d_iwad: One path through D_TryFindWADByName creates a new string so all paths must
Otherwise the caller won't know whether it should free the string
2018-07-21 16:27:31 +03:00
Fabian Greffrath
ce7f7c8f4f make some initialization functions (well, kind of) reentrant
In Choco these functions are run only once at start-up, so this will
make no difference, but for Crispy I want to support changing the
framebuffer size in-game, thus I will need to be able to re-run these
functions at run-time.
2018-07-20 13:18:56 +02:00
Simon Howard
5329fb5d75
Merge pull request #1063 from AlexMax/cmake
Get CMake working under MSYS2 + MinGW
2018-06-16 20:31:31 -04:00
Simon Howard
1f987b323d
Merge pull request #1062 from chungy/rm_codeblocks
Remove the codeblocks project
2018-06-13 20:01:21 -04:00
Mike Swanson
8c01d59551 Remove the codeblocks project
With both autotools and cmake build systems in the repository, we
can accommodate pretty much every IDE there is without needing
hand-crafted files for each one.

Closes: #1057
2018-06-13 10:56:48 -07:00
Alex Mayfield
4820b9d581 Confirm that libpng and SRC works under MSYS2 2018-06-09 19:10:07 -04:00
Alex Mayfield
ba625b652b Add MSYS2 support
This required proper ordering of libraries in the main build script
and coming up with a workaround in the SDL2 finder to ensure -lmingw32
always came first in the link order.
2018-06-09 18:48:44 -04:00
Mike Swanson
622340e479 NEWS: Make note of CMake addition, replacing the old MSVC paragraph 2018-06-05 10:44:23 -07:00
Mike Swanson
cc9c4ef380 Makefile.am: add CMakeLists.txt and win32 to EXTRA_DIST
Closes: #1055
2018-06-05 10:41:38 -07:00
Simon Howard
a005687582
Merge pull request #1054 from AlexMax/cmake
CMake Build FIles - Visual Studio project replacement
2018-06-04 20:54:04 -04:00
Alex Mayfield
d0497ad2cd Address pull request comments 2018-06-04 17:57:56 -04:00
Alex Mayfield
360da28234 Fix strcasecmp detection
Our detection must include strings.h.
2018-06-03 10:50:55 -04:00
Mike Swanson
dd283bcfdc Merge remote-tracking branch 'turol/const' 2018-06-01 15:46:15 -07:00
Alex Mayfield
9d815c5d43 Remove unused samplerate directory cache variable
The variable isn't referenced anywhere else in the finder script.
2018-06-01 18:12:53 -04:00
Alex Mayfield
cc24dc35ab Works in Visual Studio too 2018-05-31 22:34:10 -04:00
Alex Mayfield
f8ffe42a61 Add GCC warnings from autotools 2018-05-31 19:14:57 -04:00
Alex Mayfield
dc054603a1 libsamplerate support
Works on Linux, at least...
2018-05-31 19:12:31 -04:00
Julia Nechaevskaya
774256d67c Update copyright year to 2018 2018-05-30 23:14:00 +03:00
Simon Howard
5de10e5802 net: Set keepalive_recv_time on connection setup.
If the keepalive last-receive time is not initialized when the
connection is established, there is a risk that the connection will
immediately time out. This was causing problems for some players
where clients were successfully connecting to servers only to find
themselves stuck in the pre-game "lobby" area with no information
about other players.

This fixes #1046. Thanks to @bradc6 for the bug report.
2018-05-29 22:12:15 -04:00
Simon Howard
536a4bf248 Revert "net: Set keepalive_recv_time on connection setup."
This reverts commit e7e6a33e7d.
2018-05-29 22:11:50 -04:00
Simon Howard
e7e6a33e7d net: Set keepalive_recv_time on connection setup.
If the keepalive last-receive time is not initialized when the
connection is established, there is a risk that the connection will
immediately time out. This was causing problems for some players
where clients were successfully connecting to servers only to find
themselves stuck in the pre-game "lobby" area with no information
about other players.

This fixes #1046. Thanks to @bradc6 for the bug report.
2018-05-29 21:12:44 -04:00
Simon Howard
214432eebb opl: Unpause when starting a new song.
This appears to match the vanilla (DMX) behavior and some of the higher-
level sound code in s_sound.c appears to depend on it. Specifically,
S_StopMusic() has code that calls I_ResumeSong() if the music is
currently paused. However, S_Start() clears the paused state, which
prevents the call to I_ResumeSong() from occurring. I interpret this as
implying that the call to DMX's I_PlaySong() will resume OPL playback.

Thanks to Fabian and Julia Nechaevsky for noticing the bug.
2018-05-27 21:20:04 -04:00
Simon Howard
779d73e4fd docgen: Fix links when capitalization doesn't match.
This fixes a couple of broken links on the wiki page when capitalization
doesn't match page name (since capitalization is significant in Mediawiki).
2018-05-27 20:36:09 -04:00
Simon Howard
74e0e0c740 docgen: Fix wiki text generation.
This got broken by some recent changes. As part of this, remove a
now-deleted wiki page and also add a Makefile target to build the page
(for Doom, at least).
2018-05-27 20:25:43 -04:00
Simon Howard
679c98f0bf
README.Music: add gusgonna.wad reference
We faithfully emulate the GUS instrument mappings bug, which
can sound unpleasant. gusgonna.wad is now available as a
workaround.
2018-05-27 10:06:15 -04:00
Alex Mayfield
8b8c8bf3d1 Fix PNG screenshot crash with MSVC
malloc wasn't getting declared on MSVC, leading to calling an
implicitly decleared function.  I think those return int, which caused
the return value to be truncated on x64 builds, leading to an access
violation on write.
2018-05-27 00:09:20 -04:00
Alex Mayfield
3d315652c3 If libpng is missing, do not define HAVE_LIBPNG 2018-05-26 17:21:18 -04:00
Alex Mayfield
24e0387296 Whoops, forgot to add Findm.cmake 2018-05-26 17:15:28 -04:00
Alex Mayfield
2eb722d3a4 Link against libpng and libm
Tested against Ubuntu 18.04.
2018-05-26 17:12:02 -04:00
Turo Lamminen
2aa165bd3b d_iwad: Make AddIWADPath suffix parameter const 2018-05-26 16:31:55 +03:00
Turo Lamminen
91d157f7c4 d_iwad: Make AddIWADPath path parameter const 2018-05-26 16:31:29 +03:00
Turo Lamminen
5768550bf0 d_iwad: Fix const correctness issue in AddIWADPath 2018-05-26 16:31:03 +03:00
Turo Lamminen
3bbcfdca7d d_iwad: Make SearchDirectoryForIWAD dir parameter const 2018-05-26 16:27:15 +03:00
Turo Lamminen
3413c2cd37 sound: Make musicinfo_t name member const 2018-05-26 16:25:44 +03:00
Turo Lamminen
9289c1b9f1 video: Make I_SetWindowTitle parameter const 2018-05-26 16:24:15 +03:00
Turo Lamminen
3f7732e0e7 video: Make window_title variable const 2018-05-26 16:24:15 +03:00
Turo Lamminen
6f0a635df4 config: Make default_t name member const 2018-05-26 16:24:15 +03:00
Turo Lamminen
68344f39c4 config: Make M_SaveDefaultsAlternate main and extra parameters const 2018-05-26 16:24:04 +03:00
Turo Lamminen
53ff14ac6b config: Make default_collection_t filename member const 2018-05-26 16:24:04 +03:00
Turo Lamminen
1c12225351 config: Make M_BindIntVariable name parameter const 2018-05-26 16:24:04 +03:00
Turo Lamminen
d75e0f6b68 config: Make M_BindFloatVariable name parameter const 2018-05-26 16:24:04 +03:00
Turo Lamminen
c6ce98e5b9 config: Make M_BindStringVariable name parameter const 2018-05-26 16:24:04 +03:00