From f3600caa4ba5d0b3755057a17de9425b4fa51b17 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Tue, 20 Dec 2011 23:32:58 +0000 Subject: 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 --- macosx/PcsxrMemoryObject.m | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'macosx/PcsxrMemoryObject.m') 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; -- cgit v1.2.3