(svn r13390) -Codechange: introduce usererror() for fatal but not openttd related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror().
This commit is contained in:
@@ -214,7 +214,7 @@ void ShowInfo(const char *str)
|
||||
fprintf(stderr, "%s\n", str);
|
||||
}
|
||||
|
||||
void ShowOSErrorBox(const char *buf)
|
||||
void ShowOSErrorBox(const char *buf, bool system)
|
||||
{
|
||||
#if defined(__APPLE__)
|
||||
/* this creates an NSAlertPanel with the contents of 'buf'
|
||||
|
Reference in New Issue
Block a user