diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-10-13 22:07:53 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-10-13 22:07:53 +0000 |
| commit | 54a898fced26e941c1dfd28db46bcb25b1d12eae (patch) | |
| tree | 13be7abcb9b915999e85671617b934ba1317d4d7 /macosx/plugins | |
| parent | 949b0bc5002cd94dcbf37ef23f6c32d41d62c704 (diff) | |
| download | pcsxr-54a898fced26e941c1dfd28db46bcb25b1d12eae.tar.gz | |
We don't need mutable dictionaries when setting plug-in defaults.
Set proper classes in the DFSound Info.plist files.
Fix a missing default setting in the sound plug-ins.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@80391 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins')
7 files changed, 112 insertions, 124 deletions
diff --git a/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m b/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m index 8fa790d6..19b5c872 100644 --- a/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m @@ -78,7 +78,7 @@ void ReadConfig() NSDictionary *keyValues; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys: - [NSMutableDictionary dictionaryWithObjectsAndKeys: + [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:YES], @"Threaded", [NSNumber numberWithInt:64], @"Cache Size", [NSNumber numberWithInt:0], @"Speed", @@ -104,7 +104,7 @@ void ReadConfig() NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:keyValues]; - [writeDic setObject:[NSNumber numberWithInt:[Cached intValue]] forKey:@"Threaded"]; + [writeDic setObject:[NSNumber numberWithBool:[Cached intValue]] forKey:@"Threaded"]; [writeDic setObject:[NSNumber numberWithInt:[CacheSize intValue]] forKey:@"Cache Size"]; switch ([CdSpeed indexOfSelectedItem]) { diff --git a/macosx/plugins/DFSound/Info-AL.plist b/macosx/plugins/DFSound/Info-AL.plist index 8d4fbc1e..fa162fa8 100644 --- a/macosx/plugins/DFSound/Info-AL.plist +++ b/macosx/plugins/DFSound/Info-AL.plist @@ -9,7 +9,7 @@ <key>CFBundleIconFile</key> <string></string> <key>CFBundleIdentifier</key> - <string>net.sf.peops.ALPlugin</string> + <string>net.sf.peops.SPUALPlugin</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundlePackageType</key> @@ -19,6 +19,6 @@ <key>CFBundleVersion</key> <string>1.19</string> <key>NSPrincipalClass</key> - <string>NetSfPeopsALPluginController</string> + <string>NetSfPeopsSPUALPluginController</string> </dict> </plist> diff --git a/macosx/plugins/DFSound/Info-SDL.plist b/macosx/plugins/DFSound/Info-SDL.plist index 64b041c5..789dc5c1 100644 --- a/macosx/plugins/DFSound/Info-SDL.plist +++ b/macosx/plugins/DFSound/Info-SDL.plist @@ -9,7 +9,7 @@ <key>CFBundleIconFile</key> <string></string> <key>CFBundleIdentifier</key> - <string>net.sf.peops.SPUPlugin</string> + <string>net.sf.peops.SPUSDLPlugin</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundlePackageType</key> @@ -19,6 +19,6 @@ <key>CFBundleVersion</key> <string>1.19</string> <key>NSPrincipalClass</key> - <string>NetSfPeopsSPUPluginController</string> + <string>NetSfPeopsSPUSDLPluginController</string> </dict> </plist> diff --git a/macosx/plugins/DFSound/macsrc/PluginController.m b/macosx/plugins/DFSound/macsrc/PluginController.m index 0d26982f..dac102f5 100644 --- a/macosx/plugins/DFSound/macsrc/PluginController.m +++ b/macosx/plugins/DFSound/macsrc/PluginController.m @@ -35,9 +35,9 @@ extern const char* PLUGLOC(char* toloc); #endif #ifdef USEOPENAL -#define APP_ID @"net.sf.peops.ALPlugin" +#define APP_ID @"net.sf.peops.SPUALPlugin" #else -#define APP_ID @"net.sf.peops.SPUPlugin" +#define APP_ID @"net.sf.peops.SPUSDLPlugin" #endif #define PrefsKey APP_ID @" Settings" @@ -54,8 +54,7 @@ void DoAbout() NSString *path = [bundle pathForResource:@"Credits" ofType:@"rtf"]; NSAttributedString *credits; if (path) { - credits = [[[NSAttributedString alloc] initWithPath: path - documentAttributes:NULL] autorelease]; + credits = [[[NSAttributedString alloc] initWithPath: path documentAttributes:NULL] autorelease]; } else { credits = [[[NSAttributedString alloc] initWithString:@""] autorelease]; } @@ -66,13 +65,13 @@ void DoAbout() [icon setSize:size]; [app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys: - [bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName", - icon, @"ApplicationIcon", - [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion", - [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version", - [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright", - credits, @"Credits", - nil]]; + [bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName", + icon, @"ApplicationIcon", + [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion", + [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version", + [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright", + credits, @"Credits", + nil]]; } @@ -103,15 +102,16 @@ void ReadConfig(void) NSDictionary *keyValues; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys: - [NSMutableDictionary dictionaryWithObjectsAndKeys: - [NSNumber numberWithBool:YES], @"High Compatibility Mode", - [NSNumber numberWithBool:YES], @"SPU IRQ Wait", - [NSNumber numberWithBool:NO], @"XA Pitch", - [NSNumber numberWithInt:0], @"Interpolation Quality", - [NSNumber numberWithInt:1], @"Reverb Quality", - [NSNumber numberWithInt:3], @"Volume", - nil], PrefsKey, - nil]]; + [NSDictionary dictionaryWithObjectsAndKeys: + [NSNumber numberWithBool:YES], @"High Compatibility Mode", + [NSNumber numberWithBool:YES], @"SPU IRQ Wait", + [NSNumber numberWithBool:NO], @"XA Pitch", + [NSNumber numberWithBool:NO], @"Mono Sound Output", + [NSNumber numberWithInt:0], @"Interpolation Quality", + [NSNumber numberWithInt:1], @"Reverb Quality", + [NSNumber numberWithInt:3], @"Volume", + nil], PrefsKey, + nil]]; keyValues = [defaults dictionaryForKey:PrefsKey]; @@ -138,10 +138,10 @@ void ReadConfig(void) NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:keyValues]; - [writeDic setObject:[NSNumber numberWithInt:[hiCompBox intValue]] forKey:@"High Compatibility Mode"]; - [writeDic setObject:[NSNumber numberWithInt:[irqWaitBox intValue]] forKey:@"SPU IRQ Wait"]; - [writeDic setObject:[NSNumber numberWithInt:[monoSoundBox intValue]] forKey:@"Mono Sound Output"]; - [writeDic setObject:[NSNumber numberWithInt:[xaSpeedBox intValue]] forKey:@"XA Pitch"]; + [writeDic setObject:[NSNumber numberWithBool:[hiCompBox intValue]] forKey:@"High Compatibility Mode"]; + [writeDic setObject:[NSNumber numberWithBool:[irqWaitBox intValue]] forKey:@"SPU IRQ Wait"]; + [writeDic setObject:[NSNumber numberWithBool:[monoSoundBox intValue]] forKey:@"Mono Sound Output"]; + [writeDic setObject:[NSNumber numberWithBool:[xaSpeedBox intValue]] forKey:@"XA Pitch"]; [writeDic setObject:[NSNumber numberWithInt:[interpolValue intValue]] forKey:@"Interpolation Quality"]; [writeDic setObject:[NSNumber numberWithInt:[reverbValue intValue]] forKey:@"Reverb Quality"]; @@ -175,10 +175,10 @@ void ReadConfig(void) [keyValues release]; keyValues = [[defaults dictionaryForKey:PrefsKey] mutableCopy]; - [hiCompBox setIntValue:[[keyValues objectForKey:@"High Compatibility Mode"] intValue]]; - [irqWaitBox setIntValue:[[keyValues objectForKey:@"SPU IRQ Wait"] intValue]]; - [monoSoundBox setIntValue:[[keyValues objectForKey:@"Mono Sound Output"] intValue]]; - [xaSpeedBox setIntValue:[[keyValues objectForKey:@"XA Pitch"] intValue]]; + [hiCompBox setIntValue:[[keyValues objectForKey:@"High Compatibility Mode"] boolValue]]; + [irqWaitBox setIntValue:[[keyValues objectForKey:@"SPU IRQ Wait"] boolValue]]; + [monoSoundBox setIntValue:[[keyValues objectForKey:@"Mono Sound Output"] boolValue]]; + [xaSpeedBox setIntValue:[[keyValues objectForKey:@"XA Pitch"] boolValue]]; [interpolValue setIntValue:[[keyValues objectForKey:@"Interpolation Quality"] intValue]]; [reverbValue setIntValue:[[keyValues objectForKey:@"Reverb Quality"] intValue]]; diff --git a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m index f759a019..6921f5e7 100644 --- a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m @@ -124,7 +124,7 @@ void ReadConfig(void) NSBundle *selfBundle = [NSBundle bundleWithIdentifier:APP_ID]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys: - [NSMutableDictionary dictionaryWithObjectsAndKeys: + [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:NO], @"FPS Counter", [NSNumber numberWithBool:NO], @"Auto Full Screen", [NSNumber numberWithBool:NO], @"Frame Skipping", @@ -192,13 +192,13 @@ void ReadConfig(void) NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:keyValues]; - [writeDic setObject:[NSNumber numberWithInt:[fpsCounter intValue]] forKey:@"FPS Counter"]; - [writeDic setObject:[NSNumber numberWithInt:[autoFullScreen intValue]] forKey:@"Auto Full Screen"]; - [writeDic setObject:[NSNumber numberWithInt:[frameSkipping intValue]] forKey:@"Frame Skipping"]; + [writeDic setObject:[NSNumber numberWithBool:[fpsCounter intValue]] forKey:@"FPS Counter"]; + [writeDic setObject:[NSNumber numberWithBool:[autoFullScreen intValue]] forKey:@"Auto Full Screen"]; + [writeDic setObject:[NSNumber numberWithBool:[frameSkipping intValue]] forKey:@"Frame Skipping"]; //[writeDic setObject:[NSNumber numberWithInt:[frameLimit intValue]] forKey:@"Frame Limit"]; - [writeDic setObject:[NSNumber numberWithInt:[vSync intValue]] forKey:@"VSync"]; - [writeDic setObject:[NSNumber numberWithInt:[hackEnable intValue]] forKey:@"Enable Hacks"]; - [writeDic setObject:[NSNumber numberWithInt:[shaders intValue]] forKey:@"UseShader"]; + [writeDic setObject:[NSNumber numberWithBool:[vSync intValue]] forKey:@"VSync"]; + [writeDic setObject:[NSNumber numberWithBool:[hackEnable intValue]] forKey:@"Enable Hacks"]; + [writeDic setObject:[NSNumber numberWithBool:[shaders intValue]] forKey:@"UseShader"]; [writeDic setObject:[NSNumber numberWithInt:[shaderQualitySelector indexOfSelectedItem]] forKey:@"ShaderQuality"]; [writeDic setObject:[NSNumber numberWithInt:[ditherMode indexOfSelectedItem]] forKey:@"Dither Mode"]; diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.h b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.h index a38ea138..c778dd8d 100644 --- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.h +++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.h @@ -45,7 +45,7 @@ IBOutlet NSControl *gteAccuracy; - NSMutableDictionary *keyValues; + NSMutableDictionary *keyValues; } - (IBAction)cancel:(id)sender; - (IBAction)ok:(id)sender; diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m index d539ecd9..8de12e3e 100644 --- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m +++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m @@ -54,13 +54,12 @@ void AboutDlgProc() // Get parent application instance NSApplication *app = [NSApplication sharedApplication]; NSBundle *bundle = [NSBundle bundleWithIdentifier:APP_ID]; - + // Get Credits.rtf NSString *path = [bundle pathForResource:@"Credits" ofType:@"rtf"]; NSAttributedString *credits; if (path) { - credits = [[[NSAttributedString alloc] initWithPath: path - documentAttributes:NULL] autorelease]; + credits = [[[NSAttributedString alloc] initWithPath: path documentAttributes:NULL] autorelease]; } else { credits = [[[NSAttributedString alloc] initWithString:@""] autorelease]; } @@ -69,15 +68,15 @@ void AboutDlgProc() NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:[bundle bundlePath]]; NSSize size = NSMakeSize(64, 64); [icon setSize:size]; - + [app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys: - [bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName", - icon, @"ApplicationIcon", - [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion", - [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version", - [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright", - credits, @"Credits", - nil]]; + [bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName", + icon, @"ApplicationIcon", + [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion", + [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version", + [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright", + credits, @"Credits", + nil]]; } @@ -112,46 +111,35 @@ void PrepFactoryDefaultPreferences(void) NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - //tired of wasting time hacking around the "convenience" function - // of registerDefaults, so: - if ([defaults objectForKey:PrefsKey] == nil) - { - // just create default preferences and save them. - - NSDictionary* defaultPrefs = - [NSDictionary dictionaryWithObjectsAndKeys: - [NSNumber numberWithBool:NO], @"FPS Counter", - [NSNumber numberWithBool:NO], @"Auto Full Screen", - [NSNumber numberWithBool:NO], @"Frame Skipping", - [NSNumber numberWithBool:YES], @"Frame Limit", - [NSNumber numberWithBool:NO], @"VSync", - [NSNumber numberWithBool:NO], @"Enable Hacks", - [NSNumber numberWithInt:0], @"Dither Mode", - [NSNumber numberWithUnsignedInt:0], @"Hacks", - - [NSNumber numberWithBool:YES], @"Proportional Resize", -// [NSSize stringWithCString: @"default"], @"Fullscreen Resolution", - [NSNumber numberWithInt:2], @"Offscreen Drawing Level", - [NSNumber numberWithInt:0], @"Texture Color Depth Level", - [NSNumber numberWithInt:0], @"Texture Enhancement Level", - [NSNumber numberWithInt:0], @"Texture Filter Level", - [NSNumber numberWithInt:0], @"Frame Buffer Level", - [NSNumber numberWithBool:NO], @"Draw Scanlines", - // nasty: - [NSArchiver archivedDataWithRootObject: [NSColor colorWithCalibratedRed:0 green:0 blue:0 alpha:0.25]], @"Scanline Color", - [NSNumber numberWithBool:NO], @"Advanced Blending", - [NSNumber numberWithBool:NO], @"Opaque Pass", - [NSNumber numberWithBool:NO], @"Blur", - [NSNumber numberWithBool:YES], @"Z Mask Clipping", - [NSNumber numberWithBool:NO], @"Wireframe Mode", - [NSNumber numberWithBool:YES], @"Emulate mjpeg decoder", // helps remove unsightly vertical line in movies - [NSNumber numberWithBool:NO], @"Fast mjpeg decoder", - nil]; - - [defaults setObject: defaultPrefs forKey:PrefsKey]; - [defaults synchronize]; - } - return; + [defaults registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys: + [NSDictionary dictionaryWithObjectsAndKeys: + [NSNumber numberWithBool:NO], @"FPS Counter", + [NSNumber numberWithBool:NO], @"Auto Full Screen", + [NSNumber numberWithBool:NO], @"Frame Skipping", + [NSNumber numberWithBool:YES], @"Frame Limit", + [NSNumber numberWithBool:NO], @"VSync", + [NSNumber numberWithBool:NO], @"Enable Hacks", + [NSNumber numberWithInt:0], @"Dither Mode", + [NSNumber numberWithUnsignedInt:0], @"Hacks", + + [NSNumber numberWithBool:YES], @"Proportional Resize", + //[NSSize stringWithCString: @"default"], @"Fullscreen Resolution", + [NSNumber numberWithInt:2], @"Offscreen Drawing Level", + [NSNumber numberWithInt:0], @"Texture Color Depth Level", + [NSNumber numberWithInt:0], @"Texture Enhancement Level", + [NSNumber numberWithInt:0], @"Texture Filter Level", + [NSNumber numberWithInt:0], @"Frame Buffer Level", + [NSNumber numberWithBool:NO], @"Draw Scanlines", + // nasty: + [NSArchiver archivedDataWithRootObject: [NSColor colorWithCalibratedRed:0 green:0 blue:0 alpha:0.25]], @"Scanline Color", + [NSNumber numberWithBool:NO], @"Advanced Blending", + [NSNumber numberWithBool:NO], @"Opaque Pass", + [NSNumber numberWithBool:NO], @"Blur", + [NSNumber numberWithBool:YES], @"Z Mask Clipping", + [NSNumber numberWithBool:NO], @"Wireframe Mode", + [NSNumber numberWithBool:YES], @"Emulate mjpeg decoder", // helps remove unsightly vertical line in movies + [NSNumber numberWithBool:NO], @"Fast mjpeg decoder", + nil], PrefsKey, nil]]; } void ReadConfig(void) @@ -165,11 +153,11 @@ void ReadConfig(void) // and saving those new ad hoc changes is Bad for the user. PrepFactoryDefaultPreferences(); // in case user deletes, or on new startup - -//NOTE this is NOT the "keyValues" member of the controller. Just sayin. + + //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]; @@ -179,21 +167,21 @@ void ReadConfig(void) iFrameLimit = 2; // required fFrameRate = 60; // required (some number, 60 seems ok) } - -// Dithering is either on or off in OpenGL plug, but hey + + // Dithering is either on or off in OpenGL plug, but hey bDrawDither = [[keyValues objectForKey:@"Dither Mode"] intValue]; - + bChangeWinMode = [[keyValues objectForKey:@"Auto Full Screen"] boolValue] ? 2 : 1; bUseFrameSkip = [[keyValues objectForKey:@"Frame Skipping"] boolValue]; - + bUseFixes = [[keyValues objectForKey:@"Enable Hacks"] boolValue]; dwCfgFixes = [[keyValues objectForKey:@"Hacks"] unsignedIntValue]; - -// we always start out at 800x600 (at least until resizing the window is implemented) + + // we always start out at 800x600 (at least until resizing the window is implemented) iResX = 800; iResY = 600; - + iBlurBuffer = [[keyValues objectForKey:@"Blur"] boolValue]; // not noticeable, but doesn't harm iUseScanLines = [[keyValues objectForKey:@"Draw Scanlines"] boolValue]; // works NSColor* scanColor = [NSUnarchiver unarchiveObjectWithData: [keyValues objectForKey:@"Scanline Color"]]; @@ -209,8 +197,8 @@ void ReadConfig(void) if (iOffscreenDrawing > 4) iOffscreenDrawing = 4; if (iOffscreenDrawing < 0) iOffscreenDrawing = 0; - -// texture quality, whatever that means (doesn't hurt), more like "texture handling" or "texture performance" + + // texture quality, whatever that means (doesn't hurt), more like "texture handling" or "texture performance" iFrameTexType = [[keyValues objectForKey:@"Frame Buffer Level"] intValue]; if (iFrameTexType > 3) iFrameTexType = 3; if (iFrameTexType < 0) iFrameTexType = 0; @@ -218,13 +206,13 @@ void ReadConfig(void) iTexQuality = [[keyValues objectForKey:@"Texture Color Depth Level"] intValue]; if (iTexQuality > 4) iTexQuality = 4; if (iTexQuality < 0) iTexQuality = 0; - -// MAG_FILTER = LINEAR, etc. + + // MAG_FILTER = LINEAR, etc. iFilterType = [[keyValues objectForKey:@"Texture Filter Level"] intValue]; if (iFilterType > 2) iFilterType = 2; if (iFilterType < 0) iFilterType = 0; -// stretches textures (more detail). You'd think it would look great, but it's not massively better. NEEDS iFilterType to be of any use. + // stretches textures (more detail). You'd think it would look great, but it's not massively better. NEEDS iFilterType to be of any use. iHiResTextures = [[keyValues objectForKey:@"Texture Enhancement Level"] intValue]; if (iHiResTextures > 2) iHiResTextures = 2; if (iHiResTextures < 0) iHiResTextures = 0; @@ -244,25 +232,25 @@ void ReadConfig(void) ulKeybits |= KEY_SHOWFPS; else ulKeybits &=~ KEY_SHOWFPS; - - // additional checks - if(!iColDepth) iColDepth=32; + + // additional checks + if(!iColDepth) iColDepth=32; #if 0 // was in SoftGPU, not in OpenGL - if(iUseFixes) dwActFixes=dwCfgFixes; - else dwActFixes=0; + if(iUseFixes) dwActFixes=dwCfgFixes; + else dwActFixes=0; #else dwActFixes = 0; // for now... TODO #endif - - - SetFixes(); - - // need this or you'll be playing at light speed: - if(iFrameLimit==2) SetAutoFrameCap(); - bSkipNextFrame = FALSE; - - szDispBuf[0] = 0; - BuildDispMenu(0); + + + SetFixes(); + + // need this or you'll be playing at light speed: + if(iFrameLimit == 2) SetAutoFrameCap(); + bSkipNextFrame = FALSE; + + szDispBuf[0] = 0; + BuildDispMenu(0); } @implementation PluginConfigController |
