Merge branch 'crashlog_improvements' into jgrpp

# Conflicts:
#	source.list
#	src/openttd.cpp
#	src/stdafx.h
#	src/vehicle.cpp
This commit is contained in:
Jonathan G Rennison
2016-02-17 22:56:15 +00:00
15 changed files with 283 additions and 3 deletions

View File

@@ -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;
};
/**