Age | Commit message (Collapse) | Author |
|
The order in which we load dehacked patches is important. Change the
order so that IWAD dehacked patches are loaded before any others, and
so if, for example, we're playing with Freedoom, the Freedoom string
replacements can be overridden by those from extra mods we're playing
with.
As part of this, ditch DEH_Init() and use DEH_ParseCommandLine()
instead to handle the -deh option. Remove the DEH_Init() message
from startup and show messages about dehacked patches that we load
with the WAD files that we load.
|
|
|
|
If using one of the Freedoom IWADs, detect it by checking for the
FREEDOOM lump, and then load its DEHACKED lump to apply the
cosmetic string changes that it includes. In case we're using an old
version of one of the Freedoom IWADs, don't bomb out with an error
while parsing the DEHACKED lump.
|
|
Magic comments allow some of the Vanilla limits to be overridden, but
they should only apply to the files in which they were defined. Reset
the flag variables that control these overrides before every new
Dehacked file is parsed, so that a flag set in one file cannot spill
over into other files that are parsed subsequently.
|
|
The Dehacked code must pass a special flag to DEH_ReadLine() when
parsing the [STRINGS] section, so that lines can be escaped onto
following lines. However, this flag value was calculated incorrectly.
The BEX [STRINGS] section cannot be looked up at the start of
parsing a Dehacked file, because GetSectionByName() will return
NULL for it (extended strings are not available yet). Instead,
simplify the logic to look at the name of the current section and
check that way.
|
|
|
|
- restructure DEH_ReadLine() to avoid use of "goto"
- bex_string_t type name ends in "_t"
- declare constant table as "static const"
- add magic comment *allow-extended-strings* and corresponding
variable deh_allow_extended_strings
- fix logical error when no [STRINGS] section is registered to which
corrent_section could be compared
|
|
|
|
apparently, this has been forgotten before, so DEH_PointerInit()
was not executed which meant that *some* DEHACKED patches
would not work when loaded from within a PWAD but would work
when extracted from that WAD and loaded via -deh.
fixes #421
|
|
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.
|
|
The function would return false on lines without a '=' character, but only if that character is at least the third one on the line. :)
Closes #376
|
|
Lots of otherwise Vanilla-compatible WADs contain DEHACKED lumps.
Allow these to be loaded by adding a -dehlump command line parameter.
Thanks to Fabian Greffrath for the suggestion (fixes #349).
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2537
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2530
|
|
several days ago.
Subversion-branch: /branches/raven-branch
Subversion-revision: 2212
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2176
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1863
|
|
HHE and SEH support.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1841
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1699
|
|
dehacked files.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1227
|
|
common code and remove dependencies on deh_main.h.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1210
|
|
level.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1204
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1165
|
|
Quest support)
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1160
|
|
text replacement limit, so that we can use a dehacked patch to emulate
chex.exe.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1158
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 978
|
|
strings.h.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 975
|
|
sizeof(*array)
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 922
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 863
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 806
|
|
line paramter, as with -file.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 741
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 704
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 688
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 687
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 641
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 595
|
|
dw forums).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 559
|
|
functions
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 214
|
|
to the WAD loading code
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 213
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 210
|
|
dehacked files.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 182
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 174
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 164
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 162
|
|
used for anything.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 157
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 153
|