diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-07-21 01:32:08 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-07-21 01:32:08 +0000 |
| commit | 743106ec0beba8530372b1d236a88aa5f815d7a6 (patch) | |
| tree | 9c514b7397348587d635b59649ca8e57474423de /macosx/Pcsxr-QL/GenerateThumbnailForURL.m | |
| parent | 994de0b66c8885d30ece648aa4342301e630d27a (diff) | |
| download | pcsxr-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/GenerateThumbnailForURL.m')
| -rw-r--r-- | macosx/Pcsxr-QL/GenerateThumbnailForURL.m | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/macosx/Pcsxr-QL/GenerateThumbnailForURL.m b/macosx/Pcsxr-QL/GenerateThumbnailForURL.m index 0b40d9dd..44830fbd 100644 --- a/macosx/Pcsxr-QL/GenerateThumbnailForURL.m +++ b/macosx/Pcsxr-QL/GenerateThumbnailForURL.m @@ -2,9 +2,10 @@ #include <CoreServices/CoreServices.h> #include <QuickLook/QuickLook.h> #include "MyQuickLook.h" -#include <zlib.h> +//#include <zlib.h> #import <Cocoa/Cocoa.h> -#include "nopic.h" +//#include "nopic.h" +#import "PSXMemEnumerator.h" /* ----------------------------------------------------------------------------- Generate a thumbnail for file @@ -40,6 +41,7 @@ void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbn OSStatus GenerateThumbnailForFreeze(void *thisInterface, QLThumbnailRequestRef thumbnail, NSURL *url, NSDictionary *options, CGSize maxSize) { +#if 0 gzFile f; const char* state_filename = NULL; NSBitmapImageRep *imageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:96 pixelsHigh:128 bitsPerSample:8 samplesPerPixel:3 hasAlpha:NO isPlanar:NO colorSpaceName:NSCalibratedRGBColorSpace bytesPerRow:0 bitsPerPixel:0]; @@ -85,9 +87,13 @@ OSStatus GenerateThumbnailForFreeze(void *thisInterface, QLThumbnailRequestRef t QLThumbnailRequestSetImageWithData(thumbnail, (__bridge CFDataRef)(data), NULL); } return noErr; +#else + return unimpErr; +#endif } OSStatus GenerateThumbnailForMemCard(void *thisInterface, QLThumbnailRequestRef thumbnail, NSURL *url, NSDictionary *options, CGSize maxSize) { + //NSArray *memCards = CreateArrayByEnumeratingMemoryCardAtURL(url); return unimpErr; } |
