pcsxr/macosx/Source/PcsxrMemCardArray.h
SND\MaddTheSane_cp 0f8e66e194 OS X: Move away from ivars in headers, beginning with the main app.
Also have NSString properties be declared with copy, as recommended by Apple.

git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@92226 e17a0e51-4ae3-4d35-97c3-1a29b211df97
2014-11-10 19:46:07 +00:00

30 lines
788 B
Objective-C

//
// PcsxrMemCardArray.h
// Pcsxr
//
// Created by C.W. Betts on 7/6/13.
//
//
#import <Foundation/Foundation.h>
#import "PcsxrMemoryObject.h"
@interface PcsxrMemCardArray : NSObject
- (instancetype)initWithMemoryCardNumber:(int)carNum NS_DESIGNATED_INITIALIZER;
- (void)deleteMemoryBlocksAtIndex:(int)slotnum;
- (void)compactMemory;
@property (readonly) int freeBlocks;
@property (readonly) 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