mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +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
|
@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
void Sys_Cocoa_MsgBox( const char *text )
|
void Cocoa_MsgBox( const char *text )
|
||||||
{
|
{
|
||||||
NSRunInformationalAlertPanel(@"ioquake3",
|
NSRunInformationalAlertPanel(@"ioquake3",
|
||||||
[NSString stringWithUTF8String:text],
|
[NSString stringWithUTF8String:text],
|
||||||
|
|
|
@ -46,7 +46,6 @@ unsigned int CON_LogRead( char *out, unsigned int outSize );
|
||||||
|
|
||||||
#ifdef MACOS_X
|
#ifdef MACOS_X
|
||||||
char *Sys_StripAppBundle( char *pwd );
|
char *Sys_StripAppBundle( char *pwd );
|
||||||
void Sys_Cocoa_MsgBox( const char *text );
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void Sys_GLimpSafeInit( void );
|
void Sys_GLimpSafeInit( void );
|
||||||
|
|
|
@ -511,8 +511,10 @@ void Sys_ErrorDialog( const char *error )
|
||||||
Sys_Print( va( "%s\n", error ) );
|
Sys_Print( va( "%s\n", error ) );
|
||||||
|
|
||||||
#if defined(MACOS_X) && !DEDICATED
|
#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)
|
if (!com_dedicated || !com_dedicated->integer)
|
||||||
Sys_Cocoa_MsgBox(error);
|
Cocoa_MsgBox(error);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* make sure the write path for the crashlog exists... */
|
/* make sure the write path for the crashlog exists... */
|
||||||
|
|
Loading…
Reference in a new issue