summaryrefslogtreecommitdiff
path: root/macosx/Pcsxr-QL/GeneratePreviewForURL.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-07-21 01:32:08 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-07-21 01:32:08 +0000
commit743106ec0beba8530372b1d236a88aa5f815d7a6 (patch)
tree9c514b7397348587d635b59649ca8e57474423de /macosx/Pcsxr-QL/GeneratePreviewForURL.m
parent994de0b66c8885d30ece648aa4342301e630d27a (diff)
downloadpcsxr-743106ec0beba8530372b1d236a88aa5f815d7a6.tar.gz
OS X: Begin work on the memory card QuickLook.
Disable the memory card QuickLook parts: it can wait for another day. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91006 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/Pcsxr-QL/GeneratePreviewForURL.m')
-rw-r--r--macosx/Pcsxr-QL/GeneratePreviewForURL.m12
1 files changed, 9 insertions, 3 deletions
diff --git a/macosx/Pcsxr-QL/GeneratePreviewForURL.m b/macosx/Pcsxr-QL/GeneratePreviewForURL.m
index df16a80f..619a5cee 100644
--- a/macosx/Pcsxr-QL/GeneratePreviewForURL.m
+++ b/macosx/Pcsxr-QL/GeneratePreviewForURL.m
@@ -2,9 +2,10 @@
#include <CoreServices/CoreServices.h>
#include <QuickLook/QuickLook.h>
#include "MyQuickLook.h"
-#include <zlib.h>
-#import <Foundation/Foundation.h>
-#include "nopic.h"
+//#include <zlib.h>
+#import <Cocoa/Cocoa.h>
+//#include "nopic.h"
+#import "PSXMemEnumerator.h"
/* -----------------------------------------------------------------------------
Generate a preview for file
@@ -39,6 +40,7 @@ void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview)
OSStatus GeneratePreviewForFreeze(void *thisInterface, QLPreviewRequestRef preview, NSURL *url, NSDictionary *options)
{
+#if 0
NSData *data;
gzFile f;
const char* state_filename;
@@ -74,9 +76,13 @@ OSStatus GeneratePreviewForFreeze(void *thisInterface, QLPreviewRequestRef previ
}
free(pMem);
return noErr;
+#else
+ return unimpErr;
+#endif
}
static OSStatus GeneratePreviewForMemCard(void *thisInterface, QLPreviewRequestRef preview, NSURL *url, NSDictionary *options)
{
+ NSArray *memCards = CreateArrayByEnumeratingMemoryCardAtURL(url);
return unimpErr;
}