mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 01:42:12 +00:00
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:
parent
083bd1b005
commit
5ffb45c79f
3 changed files with 4 additions and 3 deletions
|
@ -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... */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue