diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-09-17 01:15:40 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-09-17 01:15:40 +0000 |
| commit | a4905ffaa0185235cc638098dae277f8abc0a56c (patch) | |
| tree | 03f508b54719c7af768a211e3655aada65577671 /macosx/ConfigurationController.m | |
| parent | 8ddbbfe157a5ed6d52bb07dcbef2e9c5814e80e0 (diff) | |
| download | pcsxr-a4905ffaa0185235cc638098dae277f8abc0a56c.tar.gz | |
Updating projects to build on Xcode 4.4
Added OpenGL shader support to the Mac software renderer.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@79892 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/ConfigurationController.m')
| -rw-r--r-- | macosx/ConfigurationController.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/ConfigurationController.m b/macosx/ConfigurationController.m index 513a0489..1820b8e9 100644 --- a/macosx/ConfigurationController.m +++ b/macosx/ConfigurationController.m @@ -15,10 +15,10 @@ NSString *memChangeNotifier = @"PcsxrMemoryCardDidChangeNotifier"; { if (theCard == 1) { [[NSUserDefaults standardUserDefaults] setObject:theFile forKey:@"Mcd1"]; - strcpy(Config.Mcd1, [theFile fileSystemRepresentation] ); + strlcpy(Config.Mcd1, [theFile fileSystemRepresentation], MAXPATHLEN ); } else { [[NSUserDefaults standardUserDefaults] setObject:theFile forKey:@"Mcd2"]; - strcpy(Config.Mcd2, [theFile fileSystemRepresentation] ); + strlcpy(Config.Mcd2, [theFile fileSystemRepresentation], MAXPATHLEN ); } [[NSNotificationCenter defaultCenter] postNotificationName:memChangeNotifier object:nil]; @@ -222,6 +222,7 @@ NSString *memChangeNotifier = @"PcsxrMemoryCardDidChangeNotifier"; [[NSNotificationCenter defaultCenter] removeObserver:self]; [checkBoxDefaults release]; if (memCardEdit) { + [memCardEdit close]; [memCardEdit release]; } [super dealloc]; |
