diff options
author | michi_cc <michi_cc@openttd.org> | 2009-10-04 21:08:30 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2009-10-04 21:08:30 +0000 |
commit | 5f67762a7f14d901984251da6c41ecdad63a049b (patch) | |
tree | b596067a15d866c491f0a6170fb3ab7f03b4e997 /src/os/unix | |
parent | 4f98178fcd110ebfc10fe42e609d27faf7105b73 (diff) | |
download | openttd-5f67762a7f14d901984251da6c41ecdad63a049b.tar.xz |
(svn r17706) -Codechange: [OSX] Rework the crash handling to use the common CrashLog infrastructure.
Diffstat (limited to 'src/os/unix')
-rw-r--r-- | src/os/unix/unix.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/os/unix/unix.cpp b/src/os/unix/unix.cpp index 7250751f5..49c06fcae 100644 --- a/src/os/unix/unix.cpp +++ b/src/os/unix/unix.cpp @@ -218,21 +218,17 @@ void ShowInfo(const char *str) fprintf(stderr, "%s\n", str); } +#if !defined(__APPLE__) 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 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 { fprintf(stderr, "Error: %s\n", buf); } -#endif } +#endif #ifdef WITH_COCOA void cocoaSetupAutoreleasePool(); |