Commit graph

4049 commits

Author SHA1 Message Date
Turo Lamminen
714d40f3bf doom: Make textscreen_t text member const 2018-07-28 15:24:13 +03:00
Turo Lamminen
78a5cc8411 doom: Make textscreen_t background member const 2018-07-28 15:22:15 +03:00
Turo Lamminen
0efd5a7800 doom: Make gamedescription variable const 2018-07-28 15:15:40 +03:00
Turo Lamminen
8481757946 doom: Make gameversions cmdline member const 2018-07-28 15:11:07 +03:00
Turo Lamminen
c3f94ff38b doom: Make gameversions description member const 2018-07-24 18:42:46 +03:00
Turo Lamminen
96bb3bfc57 doom: Make SetMissionForPackName parameter const 2018-07-24 18:37:14 +03:00
Turo Lamminen
02d6cce19f doom: Fix const correctness issue in SetMissionForPackName 2018-07-24 18:36:49 +03:00
Turo Lamminen
042ed3a817 d_iwad: Make iwad_t description member const 2018-07-24 18:34:39 +03:00
Turo Lamminen
2d18a40593 d_iwad: Make iwad_t name member const 2018-07-24 18:34:24 +03:00
Turo Lamminen
d7565fb3ca d_iwad: Make D_SuggestGameName return value const 2018-07-24 18:32:51 +03:00
Turo Lamminen
5d82938c3c d_iwad: Make D_SuggestIWADName return value const 2018-07-24 18:31:42 +03:00
Mike Swanson
f177dcbc08 wad: Make w32 MapFile filename parameter const 2018-07-21 09:31:29 -07:00
Turo Lamminen
6b923b07a7 doom: Make copyright banner const 2018-07-21 17:09:52 +03:00
Turo Lamminen
2ecb680cc7 doom: Make end messages const 2018-07-21 17:07:59 +03:00
Turo Lamminen
891e6c4e9a doom: Make M_SelectEndMessage return value const 2018-07-21 17:07:07 +03:00
Turo Lamminen
3982d04b73 doom: Make banners variable const 2018-07-21 16:56:35 +03:00
Turo Lamminen
1524b8f82b wad: Free results of D_TryFindWADByName in W_ParseCommandLine 2018-07-21 16:56:35 +03:00
Turo Lamminen
6cabdf8774 wad: Make W_NWTMergeFile filename parameter const 2018-07-21 16:56:35 +03:00
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