summaryrefslogtreecommitdiff
path: root/macosx/Psx-Memcard/GetMetadataForFile.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-07-20 04:49:58 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-07-20 04:49:58 +0000
commitb8d0d24d56dbc0ee64f4ec9a72ab917604d8109d (patch)
tree8fffd4b5b790e7b712c3ec6e00b50f176a2ded46 /macosx/Psx-Memcard/GetMetadataForFile.m
parent87559b046b06a05665865880e1203e30c6ee0d79 (diff)
downloadpcsxr-b8d0d24d56dbc0ee64f4ec9a72ab917604d8109d.tar.gz
OS X: Fix the metadata importer.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90998 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/Psx-Memcard/GetMetadataForFile.m')
-rw-r--r--macosx/Psx-Memcard/GetMetadataForFile.m4
1 files changed, 2 insertions, 2 deletions
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];