Merge branch 'crashlog_improvements' into jgrpp
# Conflicts: # source.list # src/openttd.cpp # src/stdafx.h # src/vehicle.cpp
This commit is contained in:
@@ -162,6 +162,21 @@ public:
|
||||
{
|
||||
return !this->success;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmd_msg optional failure string as passed to DoCommand
|
||||
* @return an allocated string summarising the command result
|
||||
*/
|
||||
char *AllocSummaryMessage(StringID cmd_msg = 0) const;
|
||||
|
||||
/**
|
||||
* Write a string summarising the command result
|
||||
* @param buf buffer to write to
|
||||
* @param last last byte in buffer
|
||||
* @param cmd_msg optional failure string as passed to DoCommand
|
||||
* @return the number of bytes written
|
||||
*/
|
||||
int WriteSummaryMessage(char *buf, char *last, StringID cmd_msg = 0) const;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user