From b8d0d24d56dbc0ee64f4ec9a72ab917604d8109d Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Sun, 20 Jul 2014 04:49:58 +0000 Subject: OS X: Fix the metadata importer. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90998 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/Psx-Memcard/GetMetadataForFile.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'macosx/Psx-Memcard/GetMetadataForFile.m') diff --git a/macosx/Psx-Memcard/GetMetadataForFile.m b/macosx/Psx-Memcard/GetMetadataForFile.m index c5f47b8e..9a0e2961 100644 --- a/macosx/Psx-Memcard/GetMetadataForFile.m +++ b/macosx/Psx-Memcard/GetMetadataForFile.m @@ -53,7 +53,7 @@ static void GetSoloBlockInfo(unsigned char *data, int block, McdBlock *Info) c |= *(ptr + 1); if (!c) break; - jisTitle[i] = c; + jisTitle[i] = CFSwapInt16BigToHost(c); // Convert ASCII characters to half-width if (c >= 0x8281 && c <= 0x829A) { c = (c - 0x8281) + 'a'; @@ -183,11 +183,11 @@ Boolean GetMetadataForFile(void *thisInterface, CFMutableDictionaryRef attribute } } while (i + x - 1 < MAX_MEMCARD_BLOCKS); // Ignore deleted blocks + i += x; if (MemBlockFlag(memBlock.Flags) == memFlagDeleted) { continue; } memCount++; - i += x; freeBlocks -= x; enName = [@(memBlock.Title) stringByTrimmingCharactersInSet:theCharSet]; jpName = [[NSString alloc] initWithCString:memBlock.sTitle encoding:NSShiftJISStringEncoding]; -- cgit v1.2.3