summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFNet/macsrc/PluginConfigController.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-12-02 23:20:44 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-12-02 23:20:44 +0000
commite46e672bf9d13a5aefeed9520cc68fec1bff583e (patch)
treeb132d2f62002cc411e2c63a49e3dadb6a27e1a7d /macosx/plugins/DFNet/macsrc/PluginConfigController.m
parentafc0ff9c91ec161fb519bede8957311ef0fc3b7d (diff)
downloadpcsxr-e46e672bf9d13a5aefeed9520cc68fec1bff583e.tar.gz
Fixes to the Net plug-in for Mac OS X:
Use -[NSString cStringUsingEncoding:NSASCIIStringEncoding] instead of just -[NSString cString] for getting the IP address from an NSString. Center the SockDialog before showing it. Load values when sockOpen() is called. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72821 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFNet/macsrc/PluginConfigController.m')
-rw-r--r--macosx/plugins/DFNet/macsrc/PluginConfigController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/plugins/DFNet/macsrc/PluginConfigController.m b/macosx/plugins/DFNet/macsrc/PluginConfigController.m
index 39ff984f..dbda2051 100644
--- a/macosx/plugins/DFNet/macsrc/PluginConfigController.m
+++ b/macosx/plugins/DFNet/macsrc/PluginConfigController.m
@@ -92,7 +92,7 @@ void ReadConfig()
conf.PortNum = [[keyValues objectForKey:kIPPORT] intValue];
conf.PlayerNum = [[keyValues objectForKey:kPLAYERNUM] intValue];
- strcpy(conf.ipAddress, [[keyValues objectForKey:kIPADDRKEY] cString]);
+ strcpy(conf.ipAddress, [[keyValues objectForKey:kIPADDRKEY] cStringUsingEncoding:NSASCIIStringEncoding]);
}
@implementation PluginConfigController