From e46e672bf9d13a5aefeed9520cc68fec1bff583e Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Fri, 2 Dec 2011 23:20:44 +0000 Subject: 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 --- macosx/plugins/DFNet/macsrc/PluginConfigController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macosx/plugins/DFNet/macsrc/PluginConfigController.m') 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 -- cgit v1.2.3