Cleanups for the Mac error dialog, after a code review from tma.

- Don't expose the function in sys_local.h (it would be static if we could).
- Don't call it Sys_Cocoa_*; it'd be nonsense with q3a's naming conventions.
This commit is contained in:
Ryan C. Gordon 2009-09-16 12:54:12 +00:00
parent 083bd1b005
commit 5ffb45c79f
3 changed files with 4 additions and 3 deletions

View file

@ -511,8 +511,10 @@ void Sys_ErrorDialog( const char *error )
Sys_Print( va( "%s\n", error ) );
#if defined(MACOS_X) && !DEDICATED
/* This function has to be in a separate file, compiled as Objective-C. */
extern void Cocoa_MsgBox( const char *text );
if (!com_dedicated || !com_dedicated->integer)
Sys_Cocoa_MsgBox(error);
Cocoa_MsgBox(error);
#endif
/* make sure the write path for the crashlog exists... */