X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=DumpContext.m;fp=DumpContext.m;h=eb545b75eb03ab5867369ef9ccc501a1ed25f50b;hp=0000000000000000000000000000000000000000;hb=d27548f80fe411fda2ee69c74a24eab4292267e9;hpb=e8d51183acdd2410a38dcf8f0efbf7c30cd6c581 diff --git a/DumpContext.m b/DumpContext.m new file mode 100644 index 0000000..eb545b7 --- /dev/null +++ b/DumpContext.m @@ -0,0 +1,33 @@ +// +// DumpContext.m +// The Cheat +// +// Created by Chaz McGarvey on 12/6/04. +// Copyright 2004 Chaz McGarvey. All rights reserved. +// + +#import "DumpContext.h" + + +@implementation DumpContext + + +- (id)initWithPID:(pid_t)pid +{ + if ( self = [super init] ) { + process = pid; + regionCount = VMCountRegionsWithAttributes( pid, VMREGION_READABLE ); + dump = [[NSMutableData alloc] init]; + } + return self; +} + +- (void)dealloc +{ + //[lastRegion release]; + [dump release]; + [super dealloc]; +} + + +@end