summaryrefslogtreecommitdiff
path: root/macosx/PcsxrMemoryObject.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-12-20 23:32:58 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-12-20 23:32:58 +0000
commitf3600caa4ba5d0b3755057a17de9425b4fa51b17 (patch)
tree57de4a1ab10c993785d7b102d68570305cbf222b /macosx/PcsxrMemoryObject.m
parente6ac6b9c85f96e3409a36d4c22564a15e9d876f6 (diff)
downloadpcsxr-f3600caa4ba5d0b3755057a17de9425b4fa51b17.tar.gz
Adding my name to the Coders list in Credits.rtf.
We should directly access instance variables instead of calling getters/setters on PcsxrMemoryObject's init method. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@73578 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrMemoryObject.m')
-rw-r--r--macosx/PcsxrMemoryObject.m22
1 files changed, 11 insertions, 11 deletions
diff --git a/macosx/PcsxrMemoryObject.m b/macosx/PcsxrMemoryObject.m
index aa5c7b44..fcaad514 100644
--- a/macosx/PcsxrMemoryObject.m
+++ b/macosx/PcsxrMemoryObject.m
@@ -51,23 +51,23 @@
- (id)initWithMcdBlock:(McdBlock *)infoBlock
{
if (self = [super init]) {
- self.englishName = [NSString stringWithCString:infoBlock->Title encoding:NSASCIIStringEncoding];
- self.sjisName = [NSString stringWithCString:infoBlock->sTitle encoding:NSShiftJISStringEncoding];
- self.memImage = [PcsxrMemoryObject imageFromMcd:infoBlock->Icon];
- self.memName = [NSString stringWithCString:infoBlock->Name encoding:NSASCIIStringEncoding];
- self.memID = [NSString stringWithCString:infoBlock->ID encoding:NSASCIIStringEncoding];
- self.memIconCount = infoBlock->IconCount;
- self.memFlags = infoBlock->Flags;
+ englishName = [[NSString alloc] initWithCString:infoBlock->Title encoding:NSASCIIStringEncoding];
+ sjisName = [[NSString alloc] initWithCString:infoBlock->sTitle encoding:NSShiftJISStringEncoding];
+ memImage = [[PcsxrMemoryObject imageFromMcd:infoBlock->Icon] retain];
+ memName = [[NSString alloc] initWithCString:infoBlock->Name encoding:NSASCIIStringEncoding];
+ memID = [[NSString alloc] initWithCString:infoBlock->ID encoding:NSASCIIStringEncoding];
+ memIconCount = infoBlock->IconCount;
+ memFlags = infoBlock->Flags;
if ((infoBlock->Flags & 0xF0) == 0xA0) {
if ((infoBlock->Flags & 0xF) >= 1 &&
(infoBlock->Flags & 0xF) <= 3) {
- self.notDeleted = NO;
+ notDeleted = NO;
} else
- self.notDeleted = NO;
+ notDeleted = NO;
} else if ((infoBlock->Flags & 0xF0) == 0x50)
- self.notDeleted = YES;
+ notDeleted = YES;
else
- self.notDeleted = NO;
+ notDeleted = NO;
}
return self;