Age | Commit message (Collapse) | Author |
|
The config file API previously relied on binding config variables
using M_BindVariable() which took a void pointer. It occurred to me
that if used on a boolean variable, this would be erroneous, but the
void pointer would make it impossible to tell. Split this into
separate M_Bind{Foo}Variable() functions based on type, which allows
for proper type checking on the pointers that are passed.
Vaguely related to #509.
|
|
This change rewrites and simplifies the copyright headers at the top
of all source files:
* Remove "Emacs style mode select" line; this line was included in
the headers for the originally released source files and appears
to be to set the file type for old versions of Emacs. I'm not sure
entirely why it was required but I don't think it is any more.
* Remove "You should have received a copy of..." text from copyright
header. This refers to the old 59 Temple Place address where the
FSF headquarters used to be located and is no longer correct.
Rather than change to the new address, just remove the paragraph
as it is superfluous anyway. This fixes #311.
* Remove ---- separator lines so that the file headers are barer
and more simplified.
|
|
When using a joystick or gamepad it's nice to be able to bring up the
menu without having to reach for the keyboard. This makes modern
gamepads more useful/usable.
|
|
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.
|
|
As part of this, add DIR_SEPARATOR_S as a string version of the
DIR_SEPARATOR macro. Change M_TempFile() to return a string allocated
on the C heap rather than the zone heap.
This is a first step towards fixing #371.
|
|
In #364 I recommended -1 as the default to avoid taking screenshots in
some situations where a key event is posted for key 0. It turns out
that wasn't such a great idea, as -1 is not parsed properly by the
config parser, and is shown as ??-1 in the setup tool. Default to zero
instead, and add guards to prevent screenshots being taken by mistake.
Thanks to Alexandre-Xavier for pointing this out.
|
|
|
|
|
|
|
|
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
|
|
wrapped at or near the screen boundary.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2113
|
|
most of those are outside of our own code (get on those signed/unsigned
mismatches in the midi code, fraggle ;)
Subversion-branch: /branches/strife-branch
Subversion-revision: 2110
|
|
not use GNU C-isms such as inline keyword, declaration/statement mixing,
and strange calling convention syntax for import function pointers.
Fixed critical buffer overflow in M_BindChatControls - should be
back-merged immediately. Added autogenerated directories *back* to
ignore list.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2052
|
|
Subversion-branch: /branches/strife-branch
Subversion-revision: 2051
|
|
current behavior of Choco Doom in treating configuration variable
strings as case-sensitive, because these are the real values used by
Rogue in their config, and they differ from some Heretic/Hexen config
strings only by case.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2000
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1987
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1601
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1596
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1581
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1375
|
|
remove old code.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1338
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1302
|
|
heretic/d_main.c and change g_game.c to use the common definitions.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1265
|
|
to be bound in a distributed fashion around the program. Remove
dependency of m_config.c on doom/.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1222
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1219
|