diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-09-23 21:28:57 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-09-23 21:28:57 +0000 |
| commit | a602f4591fefa9e560a49395c9d4a7a6a126a4c5 (patch) | |
| tree | 99e57afaa380c70bd5ba02ece871eacd7dd3240a /macosx/plugins/PeopsXgl/macsrc | |
| parent | e81974f7ecc531f43d42180985b9cb37ffb96934 (diff) | |
| download | pcsxr-a602f4591fefa9e560a49395c9d4a7a6a126a4c5.tar.gz | |
Quieting a warning in OS X localization implementation.
Fixing a few bugs on the OS X Software Shader support, and adding a quality selector.
Changing the hacks type used in the Mac preference selector from unsigned long to unsigned int.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@79982 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/PeopsXgl/macsrc')
| -rw-r--r-- | macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m index b75258f7..d539ecd9 100644 --- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m +++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m @@ -20,7 +20,7 @@ //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -extern char* Pcsxr_locale_text(char* toloc); +extern const char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -33,7 +33,7 @@ extern char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern char* PLUGLOC(char* toloc); +extern const char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif @@ -127,7 +127,7 @@ void PrepFactoryDefaultPreferences(void) [NSNumber numberWithBool:NO], @"VSync", [NSNumber numberWithBool:NO], @"Enable Hacks", [NSNumber numberWithInt:0], @"Dither Mode", - [NSNumber numberWithLong:0], @"Hacks", + [NSNumber numberWithUnsignedInt:0], @"Hacks", [NSNumber numberWithBool:YES], @"Proportional Resize", // [NSSize stringWithCString: @"default"], @"Fullscreen Resolution", @@ -187,7 +187,7 @@ void ReadConfig(void) bUseFrameSkip = [[keyValues objectForKey:@"Frame Skipping"] boolValue]; bUseFixes = [[keyValues objectForKey:@"Enable Hacks"] boolValue]; - dwCfgFixes = [[keyValues objectForKey:@"Hacks"] longValue]; + dwCfgFixes = [[keyValues objectForKey:@"Hacks"] unsignedIntValue]; // we always start out at 800x600 (at least until resizing the window is implemented) @@ -291,7 +291,7 @@ void ReadConfig(void) // treat hacks specially: - unsigned long hackValues = 0; + unsigned int hackValues = 0; NSArray *views = [hacksView subviews]; for (NSView *control in views) { @@ -303,7 +303,7 @@ void ReadConfig(void) keyValues = [NSMutableDictionary dictionaryWithDictionary: [[NSUserDefaults standardUserDefaults] dictionaryForKey:PrefsKey]]; NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:keyValues]; - [writeDic setObject:[NSNumber numberWithUnsignedLong:hackValues] forKey:@"Hacks"]; + [writeDic setObject:[NSNumber numberWithUnsignedInt:hackValues] forKey:@"Hacks"]; // write the preferences with Hacks adjustments [defaults setObject:writeDic forKey:PrefsKey]; @@ -352,7 +352,7 @@ void ReadConfig(void) /* load from preferences */ keyValues = [NSMutableDictionary dictionaryWithDictionary: [defaults dictionaryForKey:PrefsKey]]; - unsigned long hackValues = [[keyValues objectForKey:@"Hacks"] unsignedLongValue]; + unsigned int hackValues = [[keyValues objectForKey:@"Hacks"] unsignedIntValue]; // build refs to hacks checkboxes NSArray *views = [hacksView subviews]; @@ -373,7 +373,7 @@ void ReadConfig(void) @end -char* PLUGLOC(char *toloc) +const char* PLUGLOC(char *toloc) { NSBundle *mainBundle = [NSBundle bundleForClass:[PluginConfigController class]]; NSString *origString = nil, *transString = nil; |
