diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-08 01:10:00 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-08 01:10:00 +0000 |
| commit | a65d2267a5b86826c59a9673e6aa185469f24000 (patch) | |
| tree | 046ceb2629da9bec85ce3969be76ef6a3862816f /macosx/PcsxrMemCardArray.h | |
| parent | 37c0e091c1f8c5975fc3af8aa061a6e6266ed453 (diff) | |
| download | pcsxr-a65d2267a5b86826c59a9673e6aa185469f24000.tar.gz | |
Rewriting the memory card management on OS X. It's lacking copy capability right now, though.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85886 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrMemCardArray.h')
| -rw-r--r-- | macosx/PcsxrMemCardArray.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/macosx/PcsxrMemCardArray.h b/macosx/PcsxrMemCardArray.h new file mode 100644 index 00000000..760f4726 --- /dev/null +++ b/macosx/PcsxrMemCardArray.h @@ -0,0 +1,36 @@ +// +// PcsxrMemCardArray.h +// Pcsxr +// +// Created by C.W. Betts on 7/6/13. +// +// + +#import <Foundation/Foundation.h> +#import "PcsxrMemoryObject.h" + +@interface PcsxrMemCardArray : NSObject +{ + @private + NSArray *rawArray; + int cardNumber; + NSURL *fileURL; +} + +- (id)initWithMemoryCardNumber:(int)carNum; + +- (void)deleteMemoryBlocksAtIndex:(int)slotnum; +- (void)compactMemory; +//Blocks that are free +- (int)freeBlocks; +//Blocks that have been deleted and are free +- (int)availableBlocks; +- (int)memorySizeAtIndex:(int)idx; +- (BOOL)moveBlockAtIndex:(int)idx toMemoryCard:(PcsxrMemCardArray*)otherCard; +- (int)indexOfFreeBlocksWithSize:(int)asize; + + +@property (nonatomic, readonly, unsafe_unretained) NSArray *memoryArray; +@property (nonatomic, readonly, unsafe_unretained) NSURL *memCardLocation; + +@end |
