diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-09-17 01:47:34 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-09-17 01:47:34 +0000 |
| commit | 0af4b67eb852807fdde1723a29e15d35994e82dc (patch) | |
| tree | f52af2b15f989aa91bae56ade0ce8ac65568fa93 /macosx/plugins/DFNet/macsrc | |
| parent | f0801860c2e4ea2034af80b34c2ce424cfefb0fb (diff) | |
| download | pcsxr-0af4b67eb852807fdde1723a29e15d35994e82dc.tar.gz | |
Main Xcode project changed slightly.
Style changes in the Mac NetSock plug-in.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@79894 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFNet/macsrc')
| -rw-r--r-- | macosx/plugins/DFNet/macsrc/SockDialog.m | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/macosx/plugins/DFNet/macsrc/SockDialog.m b/macosx/plugins/DFNet/macsrc/SockDialog.m index 0b108f5e..e07b2386 100644 --- a/macosx/plugins/DFNet/macsrc/SockDialog.m +++ b/macosx/plugins/DFNet/macsrc/SockDialog.m @@ -9,7 +9,8 @@ #import "SockDialog.h" #include "dfnet.h" -void SysMessage(const char *fmt, ...) { +void SysMessage(const char *fmt, ...) +{ va_list list; char msg[512]; //char cmd[512]; @@ -21,7 +22,7 @@ void SysMessage(const char *fmt, ...) { //sprintf(cmd, "message %s\n", msg); NSString *errString = [NSString stringWithUTF8String:msg]; fprintf(stderr, "%s", msg); - NSAlert *alert = [NSAlert alertWithMessageText:nil defaultButton:@"Exit" alternateButton:nil otherButton:nil informativeTextWithFormat:errString]; + NSAlert *alert = [NSAlert alertWithMessageText:nil defaultButton:@"Exit" alternateButton:nil otherButton:nil informativeTextWithFormat:@"%@", errString]; [alert setAlertStyle:NSCriticalAlertStyle]; //NSInteger result = NSRunAlertPanel(errString, nil, @"Okay", nil, nil); NSInteger result = [alert runModal]; @@ -34,7 +35,8 @@ void SysMessage(const char *fmt, ...) { static SockDialog *globalSock = nil; -void sockCreateWaitDlg() { +void sockCreateWaitDlg() +{ if (globalSock == nil) { globalSock = [[SockDialog alloc] init]; } @@ -45,7 +47,8 @@ void sockCreateWaitDlg() { } -void sockDlgUpdate() { +void sockDlgUpdate() +{ } @@ -56,7 +59,8 @@ long sockOpen() return 0; } -void sockDestroyWaitDlg() { +void sockDestroyWaitDlg() +{ if (globalSock != nil) { [globalSock close]; [globalSock release]; @@ -70,16 +74,17 @@ void sockDestroyWaitDlg() { } -- (id)init { +- (id)init +{ if ((self = [super initWithWindowNibName:@"SockDialog"])) { return self; } else { - [self autorelease]; return nil; } } --(void)dealloc { +-(void)dealloc +{ [super dealloc]; } |
