]> Dogcows Code - chaz/thecheat/blob - DumpContext.m
update contact information and project URL
[chaz/thecheat] / DumpContext.m
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
10 */
11
12
13 #import "DumpContext.h"
14
15
16 @implementation DumpContext
17
18
19 - (id)initWithPID:(pid_t)pid
20 {
21 if ( self = [super init] ) {
22 process = pid;
23 regionCount = VMCountRegionsWithAttributes( pid, VMREGION_READABLE );
24 dump = [[NSMutableData alloc] init];
25 }
26 return self;
27 }
28
29 - (void)dealloc
30 {
31 //[lastRegion release];
32 [dump release];
33 [super dealloc];
34 }
35
36
37 @end
This page took 0.034311 seconds and 4 git commands to generate.