summaryrefslogtreecommitdiff
path: root/src/deh_main.c
AgeCommit message (Collapse)Author
2014-10-18Fix dehacked patch loading order.Simon Howard
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.
2014-09-15deh_main.c: fix "warning: implicit declaration of function ‘I_Error’"Fabian Greffrath
2014-09-13dehacked: Load Freedoom DEHACKED lump on startup.Simon Howard
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.
2014-09-13dehacked: Set stricter scoping for magic comments.Simon Howard
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.
2014-09-13dehacked: Fix BEX string expansions.Simon Howard
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.
2014-09-11simplify and generalize deh_allow_extended_strings usageFabian Greffrath
2014-09-11improvements to the [STRINGS] section parserFabian Greffrath
- 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
2014-09-08add parser for [STRINGS] sections in BEX filesFabian Greffrath
2014-08-05call InitializeSections() in DEH_LoadLump()Fabian Greffrath
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
2014-05-05Clean up file headers.Simon Howard
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.
2014-04-03deh_main.c: Fix bogus check in DEH_ParseAssignment()Fabian Greffrath
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
2014-03-16doom: Add -dehlump parameter to load DEHACKED lumps.Simon Howard
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).
2012-10-28Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2537
2012-10-25Switch from MD5 to SHA-1 for network digests.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2530
2010-12-10Merge from trunk. This is slightly out of date as I did the mergeSimon Howard
several days ago. Subversion-branch: /branches/raven-branch Subversion-revision: 2212
2010-11-30Add support for HACX v1.2 IWAD file.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2176
2010-02-08Only call InitializeSections() when a dehacked patch is actually loaded.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1863
2010-02-02Move parts of dehacked code into top-level common code, to allow futureSimon Howard
HHE and SEH support. Subversion-branch: /branches/raven-branch Subversion-revision: 1841
2009-09-30Change British English spellings to American English, for consistency.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1699
2008-09-14Add -nocheat command line parameter to disable applying cheats fromSimon Howard
dehacked files. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1227
2008-09-07Move dehacked code to doom/. Split dehacked string replacement code intoSimon Howard
common code and remove dependencies on deh_main.h. Subversion-branch: /branches/raven-branch Subversion-revision: 1210
2008-09-06Remove includes of doomdef.h where possible, move generic parts into topSimon Howard
level. Subversion-branch: /branches/raven-branch Subversion-revision: 1204
2008-07-31Automatically load chex.deh on startup if playing in chex mode.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1165
2008-07-29Add magic dehacked comment to enable long cheat sequences (also for ChexSimon Howard
Quest support) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1160
2008-07-26Allow magic comments in dehacked files that disable the DOS dehackedSimon Howard
text replacement limit, so that we can use a dehacked patch to emulate chex.exe. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1158
2007-10-18Shut up signed / unsigned comparison warnings.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 978
2007-10-18Fix for strcasecmp in MSVC; #define to stricmp. Outside MSVC, useSimon Howard
strings.h. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 975
2007-06-21Add arrlen() macro as a clearer way of doing sizeof(array) /Simon Howard
sizeof(*array) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 922
2007-03-26Search WAD search dirs when loading dehacked patches.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 863
2006-12-24Javadoc-style self-documenting system for command line options.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 806
2006-10-27Allow multiple dehacked patches to be specified with the -deh commandSimon Howard
line paramter, as with -file. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 741
2006-10-18Strip out CVS logs, RCS Id tags.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 704
2006-10-06Send deh/wad checksums to the server when connecting.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 688
2006-10-05Dehacked information checksum generationSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 687
2006-09-21Fix a lot of warnings (for fussy compilers) and one always-true checkRussell Rice
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 641
2006-09-02Allow loading dehacked 2.3 patches.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 595
2006-06-18Add deh_section_sound to dehacked sections list (thanks to rpeter on the Simon Howard
dw forums). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 559
2005-10-17DEH_CheckCommandLine -> DEH_Init, for consistency with other InitSimon Howard
functions Subversion-branch: /trunk/chocolate-doom Subversion-revision: 214
2005-10-17Add a "loading" message for each dehacked patch we load, to be orthogonalSimon Howard
to the WAD loading code Subversion-branch: /trunk/chocolate-doom Subversion-revision: 213
2005-10-17Ignore comments in dehacked files.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 210
2005-10-09Check the header of dehacked files and make sure we only load validSimon Howard
dehacked files. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 182
2005-10-08Dehacked "Sound" section supportSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 174
2005-10-04Dehacked "Misc" section parser (currently a dummy)Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 164
2005-10-04Rewrite cheats code. Add dehacked cheat replacement.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 162
2005-10-03Replace end of section functions with NULLs as they arent currently beingSimon Howard
used for anything. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 157
2005-10-02The beginnings of dehacked supportSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 153