summaryrefslogtreecommitdiff
path: root/src/setup
AgeCommit message (Collapse)Author
2014-04-01textscreen: Use safe string functions.Simon Howard
Define TXT_{StringCopy,StringConcat,snprintf,vsnprintf} as analogs of the m_misc.c versions so that the textscreen library does not need a dependency on the Doom code, and change all textscreen code to use these instead of unsafe functions. This fixes #372.
2014-04-01setup: Eliminate use of sprintf().Simon Howard
Use M_snprintf() or M_StringJoin() instead where appropriate. This fixes #371.
2014-04-01Replace all snprintf() calls with M_snprintf().Simon Howard
The Windows API has an _snprintf function that is not the same as Unix's snprintf(): if the string is truncated then no trailing NUL character is appended. This makes the function unsafe. Define a replacement/wrapper called M_snprintf that works the same but always appends a trailing NUL, for safety on Windows and other OSes that behave like this. Do the same thing for vsnprintf(), and update HACKING to list snprintf/vsnprintf as forbidden functions. This fixes #375; thanks to Quasar for pointing out the different behavior of these functions.
2014-03-29setup: Eliminate use of unsafe string functions.Simon Howard
Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives.
2014-03-29misc: Add string utility functions.Simon Howard
It's more readable to write "M_StringEndsWith(..." than doing a bunch of pointer arithmetic, and this is a common pattern. Also add M_StringStartsWith, M_StringJoin and M_StringCopy. The latter is a safe alternative for strcpy() that works the same as OpenBSD's strlcpy(). Use these functions in a few places where it makes sense.
2014-03-27setup: Make default sound volumes match Vanilla.Simon Howard
Doom, Heretic, Hexen and Strife have different default SFX and music volumes. Make sure the setup tool sets the appropriate default when creating a new configuration file. Thanks to Alexandre-Xavier for reporting this and providing the correct defaults. This fixes #347.
2014-03-23setup: Add missing snd_maxslicetime_ms variable.Simon Howard
Preserve the snd_maxslicetime_ms variable when loading/saving configs in the setup tool.
2014-03-23music: Add config var for external music program.Simon Howard
Mix_SetMusicCMD() allows a program to be specified to configure an external program to be invoked for music playback. Add a config variable (snd_musiccmd) to allow this to be set from a configuration file. Thanks to Holering for his comments on Doomworld about how to do this.
2014-03-18Add a dedicated key for taking screenshots.Fabian Greffrath
2014-03-17Add PNG screenshots to advanced video options menu.Fabian Greffrath
2014-03-17Allow for PNG screenshots.Fabian Greffrath
2014-03-16hexen: Increase maximum level number to MAP60.Simon Howard
Hexen: Deathkings of the Dark Citadel uses levels up to MAP60, not MAP40 as used in hexen.wad. Bump up the limit for Hexen to MAP60 so that it is possible to play multiplayer games with hexdd.wad loaded. Thanks to Rhiyo for the bug report. This fixes #312.
2014-03-13Allow to rebind artifact keys in Hexen.Fabian Greffrath
2013-12-23setup: Add key_mission to the controls group.svdijk
Otherwise, the same key can be bound to "Show mission" and one of the other "More controls..." at the same time.
2013-12-04Fix 'make clean' where some files were not being cleaned (thanksSimon Howard
fabian). Subversion-branch: /branches/v2-branch Subversion-revision: 2756
2013-11-19Fix crash when using fallback Doom IWAD and selecting level.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2754
2013-10-31Only show 'flying' controls when configuring Heretic or Hexen, notSimon Howard
Strife (thanks Alexandre-Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2736
2013-10-31Fix setup tool Windows resource file to include the application manifestSimon Howard
correctly. This was previously fixed on trunk but not merged. Also update the manifest to add GUIDs for Windows 8. Subversion-branch: /branches/v2-branch Subversion-revision: 2734
2013-10-28Add missing asmv3 namespace to setup manifest (oops).Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2728
2013-10-28Declare Windows binaries as DPI-aware to prevent the OS from applyingSimon Howard
DPI virtualization. Subversion-branch: /branches/v2-branch Subversion-revision: 2727
2013-10-26Default to windowed mode in OS X, as there is an SDL bug that can causeSimon Howard
crashing in fullscreen mode (thanks Ryan Peel). Subversion-branch: /branches/v2-branch Subversion-revision: 2721
2013-10-26Select fallback IWADs that match the game we are configuring (thanksSimon Howard
Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2719
2013-10-20Use OPL MIDI playback as the default music device.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2714
2013-10-16Fix bug with freeing of static strings, accidentally introduced inSimon Howard
r2633. Subversion-branch: /branches/v2-branch Subversion-revision: 2712
2013-10-15Rip out special casing on Windows that defaults to the SDL directxSimon Howard
driver over the Windows GDI one. This causes far too many problems. Subversion-branch: /branches/v2-branch Subversion-revision: 2710
2013-10-06Finish implementation of Hexen CD audio music mode.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2694
2013-09-29Preserve libsamplerate_scale in the setup tool.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2691
2013-09-21Fix setup tool desktop file to point to chocolate-doom-setup.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2674
2013-09-20Set setup tool title so that it it shows the name of the correct gameSimon Howard
being configured, not just always "Chocolate Doom". Subversion-branch: /branches/v2-branch Subversion-revision: 2669
2013-09-04Fix setup tool defaults for GUS/Timidity path config variables (thanksSimon Howard
Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2633
2013-08-17Fix IWAD auto-selection when joining a game in the setup tool (thanksSimon Howard
Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2619
2013-08-11Remove Windows CE support.Simon Howard
What support exists is for obsolete devices I no longer possess; I've never been contacted about the port and it's been several years since I even bothered to build a new version. All the extra overrides are clutter that can just be removed. Subversion-branch: /branches/v2-branch Subversion-revision: 2615
2013-04-01Add configuration boxes for GUS and Timidity configuration.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2578
2013-04-01Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2577
2013-03-27Remove duplicate definition of M_OEMToUTF8() (thanks exp(x)).Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2569
2013-03-03Add GUS pseudo-emulation.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2566
2013-03-03Add configuration file variable to specify path to a Timidity configSimon Howard
file. Subversion-branch: /branches/v2-branch Subversion-revision: 2564
2013-01-03Refactor skill selector to change automatically when switching characterSimon Howard
class in Hexen mode. Add Strife skills list. Subversion-branch: /branches/v2-branch Subversion-revision: 2557
2012-10-28Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2537
2012-02-28Oops.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2506
2012-02-02Bind missing sound variables so the settings are not lost when runningSimon Howard
the setup tool (thanks Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2485
2011-10-30Fix previous change - Strife games are not always -altdeath; the defaultSimon Howard
is -deathmatch and -altdeath enables Deathmatch II mode. Subversion-branch: /branches/v2-branch Subversion-revision: 2471
2011-10-29Update Strife multiplayer behavior to always use altdeath mode inSimon Howard
netgames, and remove code for -deathmatch parameter. Update setup tool to remove game type dropdown when setting up a Strife game. Subversion-branch: /branches/v2-branch Subversion-revision: 2470
2011-10-29Enable gcc warning to detect redundant declarations, and clean upSimon Howard
instances of this within the code (thanks Edward-san). Subversion-branch: /branches/v2-branch Subversion-revision: 2468
2011-10-23Remove hack that forces the window to always be centered within theSimon Howard
screen. Add a configuration file variable to control where the game window should appear. Subversion-branch: /branches/v2-branch Subversion-revision: 2467
2011-10-23Fix player name input box in multiplayer configuration.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2465
2011-10-23Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2464
2011-10-22Update setup tool to show 8 key bindings for appropriate games.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2454
2011-10-20Change labels in setup tool for Strife popup windows to have moreSimon Howard
descriptive names. Subversion-branch: /branches/v2-branch Subversion-revision: 2448
2011-10-20Fix bug with Hexen savedir set to "(null)" by setup tool (thanksSimon Howard
Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2447