summaryrefslogtreecommitdiff
path: root/macosx/PcsxrMemCardArray.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-09-10 18:43:18 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-09-10 18:43:18 +0000
commit4b4f074b6659f33b4f9e1c9784861409d8debd97 (patch)
tree0fbd7f1ea28c9431cd8bafbaaac5d689d55d5dd6 /macosx/PcsxrMemCardArray.m
parenta3ac4842bd5c7058b1363f7d3307f61724fc7178 (diff)
downloadpcsxr-4b4f074b6659f33b4f9e1c9784861409d8debd97.tar.gz
Convert Objective-C code to modern syntax, mainly for the NSDictionaries.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87115 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrMemCardArray.m')
-rw-r--r--macosx/PcsxrMemCardArray.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/PcsxrMemCardArray.m b/macosx/PcsxrMemCardArray.m
index a867c938..17db35e1 100644
--- a/macosx/PcsxrMemCardArray.m
+++ b/macosx/PcsxrMemCardArray.m
@@ -181,7 +181,7 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
#endif
return NO;
}
- PcsxrMemoryObject *tmpObj = [rawArray objectAtIndex:idx];
+ PcsxrMemoryObject *tmpObj = rawArray[idx];
int memSize = tmpObj.blockSize;
@@ -260,7 +260,7 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
return [self freeBlocks];
}
- return [[rawArray objectAtIndex:idx] blockSize];
+ return [rawArray[idx] blockSize];
}
- (void)compactMemory
@@ -317,7 +317,7 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
return;
}
- PcsxrMemoryObject *theObj = [rawArray objectAtIndex:slotnum];
+ PcsxrMemoryObject *theObj = rawArray[slotnum];
McdBlock flagBlock;