summaryrefslogtreecommitdiff
path: root/macosx/plugins/PeopsXgl/macsrc
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-05 21:59:24 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-05 21:59:24 +0000
commitd50bdc6fb2378fc3219e14c47a7b1adc60ee2203 (patch)
tree924bce4490768605b7c0041db20a40e074a597b1 /macosx/plugins/PeopsXgl/macsrc
parent3296522bfedc2c72cb7d3f4476a64db8bbf38e8f (diff)
downloadpcsxr-d50bdc6fb2378fc3219e14c47a7b1adc60ee2203.tar.gz
Change some +stringWithCString and -initWithCString:encoding: to modern Objective-C syntax.
Change the encoding of a couple of info.plists to UTF-8, otherwise Xcode was complaining. Removing some extra line breaks on OS X code. Other minor changes. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85867 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/PeopsXgl/macsrc')
-rwxr-xr-xmacosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m6
-rwxr-xr-xmacosx/plugins/PeopsXgl/macsrc/drawgl.m2
2 files changed, 3 insertions, 5 deletions
diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
index 12680d5a..37793acc 100755
--- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
+++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
@@ -160,7 +160,6 @@ void ReadConfig(void)
//NOTE this is NOT the "keyValues" member of the controller. Just sayin.
NSDictionary* keyValues = [[NSUserDefaults standardUserDefaults] dictionaryForKey:PrefsKey];
-
// bind all prefs settings to their PCSXR counterparts
// with a little finagling to make it work as expected
iShowFPS = [[keyValues objectForKey:@"FPS Counter"] boolValue];
@@ -245,7 +244,6 @@ void ReadConfig(void)
dwActFixes = 0; // for now... TODO
#endif
-
SetFixes();
// need this or you'll be playing at light speed:
@@ -368,7 +366,7 @@ char* PLUGLOC(char *toloc)
{
NSBundle *mainBundle = [NSBundle bundleForClass:[PluginConfigController class]];
NSString *origString = nil, *transString = nil;
- origString = [NSString stringWithCString:toloc encoding:NSUTF8StringEncoding];
+ origString = @(toloc);
transString = [mainBundle localizedStringForKey:origString value:nil table:nil];
- return (char*)[transString cStringUsingEncoding:NSUTF8StringEncoding];
+ return (char*)[transString UTF8String];
}
diff --git a/macosx/plugins/PeopsXgl/macsrc/drawgl.m b/macosx/plugins/PeopsXgl/macsrc/drawgl.m
index 99637e64..c2714769 100755
--- a/macosx/plugins/PeopsXgl/macsrc/drawgl.m
+++ b/macosx/plugins/PeopsXgl/macsrc/drawgl.m
@@ -154,7 +154,7 @@ unsigned long ulInitDisplay(void) // OPEN GAME WINDOW
windowController = [PluginWindowController openGameView];
glView = [windowController openGLView];
- [[windowController window] setTitle:[NSString stringWithCString:pCaptionText encoding:NSUTF8StringEncoding]];
+ [[windowController window] setTitle:@(pCaptionText)];
});
return (unsigned long)[windowController window];