Node:Debug switches, Next:Help, Previous:Enhanced Keyboard Mapping, Up:Additional Reading
Debug switches are not useful for most people, but they can sometimes help fixing odd problems in the patch. They are mostly intended to be used by developers when testing the patch.
To use them, they must be the first switch on TTDPatch's command line, and start
with an exclamation mark, "!". After the exclamation mark follows the list of
debug switches, each of them possibly trailed by a "+" or "-" to choose two
different modes of operation. Currently if neither "+" nor "-" is specified,
"+" is assumed. An example:
This would run TTDPatch to collect new version information and terminate before even starting TTD. If any warnings occur, they are ignored.
Here's the complete list of debug switches:
|v-||Ignore TTD version info stored with TTDPatch (i.e. do not recognize TTD version)
|v+||Collect TTD version info and write to a file
|s-||Never swap out the real mode code when starting TTD (DOS only)
|s+||Always swap out the real mode code when starting TTD (DOS only)
|c||This switch is very special: if specified, TTDPatch will not process
the command line options as usual, instead it will treat the rest of the command
line as name and arguments of a program to run. This feature can be used to analyze
TTDPatch's memory usage in the DOS version.
|m-||Run even if there's not enough memory to start TTD (DOS only)
|f-||Don't read or create the default |
|a-||Don't check dependencies between switches. If used, TTDPatch
will not correct illegal combinations of switches.
Warning: some switch combinations are dangerous.
For example, if |
|w-||Do not wait for a key after a warning message, just continue
|w+||Do not wait for a key after a warning message, just abort
|o+||Reorder switches alphabetically when writing a configuration file
|T+||Terminate TTD immediately after collecting version information
|L+||Load language data from the file named |
|C+||Load patch code from |
|I-||Prevent the enhanced keyboard handler from updating keyboard
LED indicators. The Lock keys will still toggle internal flags, though. (DOS only)
|S+||Dump information about all supported switches (non-debug, non-special ones)
to swtchlst.txt and abort