summaryrefslogtreecommitdiff
path: root/macosx/Source/PcsxrMemoryObject.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-08-06 19:02:00 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-08-06 19:02:00 +0000
commitf629ca7098a057086b1a15df93f3fc58b058c4b8 (patch)
tree5ca6cd430deca0426eae14bf9c564f1ebaccdd6a /macosx/Source/PcsxrMemoryObject.m
parent45979b673181c770b2a2e7c9c3c4c3faec337e31 (diff)
downloadpcsxr-f629ca7098a057086b1a15df93f3fc58b058c4b8.tar.gz
OS X: QuickLook: use animated gifs to show the memory card image.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91191 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/Source/PcsxrMemoryObject.m')
-rw-r--r--macosx/Source/PcsxrMemoryObject.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/Source/PcsxrMemoryObject.m b/macosx/Source/PcsxrMemoryObject.m
index db5dac65..aa5f2068 100644
--- a/macosx/Source/PcsxrMemoryObject.m
+++ b/macosx/Source/PcsxrMemoryObject.m
@@ -74,6 +74,14 @@ static NSString *MemLabelEndLink;
});
}
+- (NSImage*)memoryImageAtIndex:(NSInteger)idx
+{
+ if (memImageIndex == -1 || idx > self.memIconCount) {
+ return nil;
+ }
+ return memImages[idx];
+}
+
+ (NSString*)memoryLabelFromFlag:(PCSXRMemFlags)flagNameIndex
{
switch (flagNameIndex) {