diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-03-03 19:22:10 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-03-03 19:22:10 +0000 |
| commit | 95d8573be44b40a827f244d920b57d75ecff2a5c (patch) | |
| tree | e0bc3ffaa4ad4a628965aca16b8551b33c78c46c /macosx/plugins/PeopsXgl/macsrc | |
| parent | 655115f51bf9a30a3950f44196f32bde40743e94 (diff) | |
| download | pcsxr-95d8573be44b40a827f244d920b57d75ecff2a5c.tar.gz | |
OS X: Check for an RTFD credits in the plug-ins.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@89252 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/PeopsXgl/macsrc')
3 files changed, 64 insertions, 49 deletions
diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.h b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.h index 0e09130e..f5a22943 100755 --- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.h +++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.h @@ -8,47 +8,33 @@ #import <Cocoa/Cocoa.h> @interface NetSfPeopsOpenGLPluginConfigController : NSWindowController -{ - // buncha controls. - // most aren't worthy as IBOutlets since the IB interface - // uses bindings to magically set user defaults. - // But you can look at their grandness if you like: - - IBOutlet NSCell *autoFullScreen; - IBOutlet NSPopUpButton *ditherMode; - IBOutlet NSCell *fpsCounter; - IBOutlet NSCell *frameSkipping; - IBOutlet NSCell *vSync; - - IBOutlet NSControl *proportionalResize; - IBOutlet NSPopUpButton *fullscreenSize; - IBOutlet NSFormCell *windowWidth; - IBOutlet NSFormCell *windowHeighth; - IBOutlet NSPopUpButton *offscreenDrawing; - - IBOutlet NSPopUpButton *texColorDepth; - IBOutlet NSSlider *texFiltering; - IBOutlet NSSlider *texEnhancment; - - IBOutlet NSPopUpButton *frameBufferEffects; - - IBOutlet NSCell *drawScanlines; - IBOutlet NSCell *advancedBlending; - IBOutlet NSCell *opaquePass; - IBOutlet NSCell *zMaskClipping; - IBOutlet NSCell *wireframeOnly; - IBOutlet NSCell *blurEffect; - IBOutlet NSCell *mjpegDecoder; - IBOutlet NSCell *mjpegDecoder15bit; - IBOutlet NSCell *gteAccuracy; - IBOutlet NSColorWell *scanlineColorWell; - - IBOutlet NSMatrix *hacksMatrix; - IBOutlet NSControl *hackEnable; - IBOutlet NSWindow *hacksWindow; - - NSMutableDictionary *keyValues; -} +@property (weak) IBOutlet NSCell *autoFullScreen; +@property (weak) IBOutlet NSPopUpButton *ditherMode; +@property (weak) IBOutlet NSCell *fpsCounter; +@property (weak) IBOutlet NSCell *frameSkipping; +@property (weak) IBOutlet NSCell *vSync; +@property (weak) IBOutlet NSControl *proportionalResize; +@property (weak) IBOutlet NSPopUpButton *fullscreenSize; +@property (weak) IBOutlet NSFormCell *windowWidth; +@property (weak) IBOutlet NSFormCell *windowHeighth; +@property (weak) IBOutlet NSPopUpButton *offscreenDrawing; +@property (weak) IBOutlet NSPopUpButton *texColorDepth; +@property (weak) IBOutlet NSSlider *texFiltering; +@property (weak) IBOutlet NSSlider *texEnhancment; +@property (weak) IBOutlet NSPopUpButton *frameBufferEffects; +@property (weak) IBOutlet NSCell *drawScanlines; +@property (weak) IBOutlet NSCell *advancedBlending; +@property (weak) IBOutlet NSCell *opaquePass; +@property (weak) IBOutlet NSCell *zMaskClipping; +@property (weak) IBOutlet NSCell *wireframeOnly; +@property (weak) IBOutlet NSCell *blurEffect; +@property (weak) IBOutlet NSCell *mjpegDecoder; +@property (weak) IBOutlet NSCell *mjpegDecoder15bit; +@property (weak) IBOutlet NSCell *gteAccuracy; +@property (weak) IBOutlet NSColorWell *scanlineColorWell; +@property (weak) IBOutlet NSMatrix *hacksMatrix; +@property (weak) IBOutlet NSControl *hackEnable; +@property (weak) IBOutlet NSWindow *hacksWindow; @property (readwrite, retain) NSMutableDictionary *keyValues; - (IBAction)cancel:(id)sender; @@ -65,4 +51,3 @@ @end void PrepFactoryDefaultPreferences(void); - diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m index 2b24a512..29a2b269 100755 --- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m +++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m @@ -57,6 +57,9 @@ void AboutDlgProc() // Get Credits.rtf NSString *path = [bundle pathForResource:@"Credits" ofType:@"rtf"]; NSAttributedString *credits; + if (!path) { + path = [bundle pathForResource:@"Credits" ofType:@"rtfd"]; + } if (path) { credits = [[NSAttributedString alloc] initWithPath:path documentAttributes:NULL]; } else { @@ -70,11 +73,11 @@ void AboutDlgProc() NSDictionary *infoPaneDict = @{@"ApplicationName": [bundle objectForInfoDictionaryKey:@"CFBundleName"], - @"ApplicationIcon": icon, - @"ApplicationVersion": [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], - @"Version": [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], - @"Copyright": [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], - @"Credits": credits}; + @"ApplicationIcon": icon, + @"ApplicationVersion": [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], + @"Version": [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], + @"Copyright": [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], + @"Credits": credits}; dispatch_async(dispatch_get_main_queue(), ^{ [NSApp orderFrontStandardAboutPanelWithOptions:infoPaneDict]; }); @@ -287,6 +290,33 @@ void ReadConfig(void) } @implementation NetSfPeopsOpenGLPluginConfigController +@synthesize autoFullScreen; +@synthesize ditherMode; +@synthesize fpsCounter; +@synthesize frameSkipping; +@synthesize vSync; +@synthesize proportionalResize; +@synthesize fullscreenSize; +@synthesize windowWidth; +@synthesize windowHeighth; +@synthesize offscreenDrawing; +@synthesize texColorDepth; +@synthesize texFiltering; +@synthesize texEnhancment; +@synthesize frameBufferEffects; +@synthesize drawScanlines; +@synthesize advancedBlending; +@synthesize opaquePass; +@synthesize zMaskClipping; +@synthesize wireframeOnly; +@synthesize blurEffect; +@synthesize mjpegDecoder; +@synthesize mjpegDecoder15bit; +@synthesize gteAccuracy; +@synthesize scanlineColorWell; +@synthesize hacksMatrix; +@synthesize hackEnable; +@synthesize hacksWindow; @synthesize keyValues; @@ -299,7 +329,7 @@ void ReadConfig(void) { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:keyValues]; + NSMutableDictionary *writeDic = [keyValues mutableCopy]; writeDic[kFPSCounter] = ([fpsCounter integerValue] ? @YES : @NO); writeDic[@"Scanline Color"] = [NSArchiver archivedDataWithRootObject:[scanlineColorWell color]]; writeDic[kFrameSkipping] = ([frameSkipping integerValue] ? @YES : @NO); diff --git a/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.h b/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.h index ad1ef6b0..2fd50d37 100755 --- a/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.h +++ b/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.h @@ -40,7 +40,7 @@ extern PluginWindowController *gameController; IBOutlet NSOpenGLView *glView; // NSWindow *fullWindow; - bool inFullscreen; + BOOL inFullscreen; } + (id)openGameView; |
