From 92bae095d2a667b737a79ff104525a188537db52 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Sun, 27 Nov 2011 19:43:22 +0000 Subject: Added a note to the Mac OS X memory editor's source code. Let's have the tab that opens in Mac preferences be the first tab. Somewhere this got changed. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72671 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PcsxrMemCardController.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'macosx/PcsxrMemCardController.m') diff --git a/macosx/PcsxrMemCardController.m b/macosx/PcsxrMemCardController.m index de918f74..0b594e71 100644 --- a/macosx/PcsxrMemCardController.m +++ b/macosx/PcsxrMemCardController.m @@ -12,6 +12,8 @@ #define MAX_MEMCARD_BLOCKS 15 +//FIXME: This code uses similar code to the GTK memory card manager, and both don't recognize saves that span multiple blocks. + static NSImage *imageFromMcd(short * icon) { NSBitmapImageRep *imageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:16 pixelsHigh:16 bitsPerSample:8 samplesPerPixel:3 hasAlpha:NO isPlanar:NO colorSpaceName:NSCalibratedRGBColorSpace bytesPerRow:0 bitsPerPixel:0]; @@ -266,12 +268,11 @@ static inline void CopyMemcardData(char *from, char *to, int *i, char *str, int if (memCardSelect == 1) { CreateMcd(Config.Mcd1); LoadMcd(1, Config.Mcd1); - [self loadMemoryCardInfoForCard:1]; } else { CreateMcd(Config.Mcd2); LoadMcd(2, Config.Mcd2); - [self loadMemoryCardInfoForCard:2]; } + [self loadMemoryCardInfoForCard:memCardSelect]; } } @@ -336,11 +337,10 @@ static inline void CopyMemcardData(char *from, char *to, int *i, char *str, int if (memCardSelect == 1) { LoadMcd(1, Config.Mcd1); - [self loadMemoryCardInfoForCard:1]; } else { LoadMcd(2, Config.Mcd2); - [self loadMemoryCardInfoForCard:2]; } + [self loadMemoryCardInfoForCard:memCardSelect]; } } -- cgit v1.2.3