blob: a1d209fbb78f2467dae79f6c2940e3bb69e798c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
//
// 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 *memCardURL;
@property (nonatomic, readonly) const char *memCardCPath;
@end
|