Changeset - r12753:540e6d699261
[Not reviewed]
master
0 1 0
matthijs - 15 years ago 2009-08-20 10:34:19
matthijs@openttd.org
(svn r17229) -Codechange: Coding style fixes.
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/unix.cpp
Show inline comments
 
@@ -212,29 +212,30 @@ const char *OTTD2FS(const char *name) {r
 
void ShowInfo(const char *str)
 
{
 
	fprintf(stderr, "%s\n", str);
 
}
 

	
 
void ShowOSErrorBox(const char *buf, bool system)
 
{
 
#if defined(__APPLE__)
 
	/* this creates an NSAlertPanel with the contents of 'buf'
 
	 * this is the native and nicest way to do this on OSX */
 
	ShowMacDialog( buf, "See readme for more info\nMost likely you are missing files from the original TTD", "Quit" );
 
#else
 
	/* all systems, but OSX */
 
	if (isatty(fileno(stderr))) /* Only use escape codes on a TTY */
 
	/* All unix systems, except OSX. Only use escape codes on a TTY. */
 
	if (isatty(fileno(stderr))) {
 
		fprintf(stderr, "\033[1;31mError: %s\033[0;39m\n", buf);
 
	else
 
	} else {
 
		fprintf(stderr, "Error: %s\n", buf);
 
	}
 
#endif
 
}
 

	
 
#ifdef WITH_COCOA
 
void cocoaSetupAutoreleasePool();
 
void cocoaReleaseAutoreleasePool();
 
#endif
 

	
 
int CDECL main(int argc, char *argv[])
 
{
 
	int ret;
 

	
0 comments (0 inline, 0 general)