Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Debugging functions

Functions

const char * DebugGetDefaultCommands (void)
 Determines default commands to be executed at startup.
 

Detailed Description

Function Documentation

◆ DebugGetDefaultCommands()

const char * DebugGetDefaultCommands ( void )

Determines default commands to be executed at startup.

This function returns a list of default commands which are executed on startup if no .dbgcmd file is read.

Currently this function returns:

"debug.io flat add"

In order to provide a different set of commands simply put another version of DebugGetDefaultCommands in a CPP file. This is basically identical to having a .dbgcmd file in the current directory. For some situations (e.g. passing EXEs off to QA) it is however safer to have these startup commands build into the EXE itself rather than relying on QA having the right .dbgcmd file in place.

As an example a new version of this function might return:

"debug.io flat add\nio flat copy q:\logfiles\n"
Returns
list of commands, separated by \n
Note
This function is executed after all static variables have been initialized.

Definition at line 33 of file debug_getdefaultcommands.cpp.