X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=Variable.h;fp=Variable.h;h=57c8e67cb7f4b1303a281a06b0a457b84db393f2;hp=fc3d83b9b73b449b94d44102d95ef3320256bb37;hb=179538478d0db2e5f8f2b50ccb3ff889b474aa01;hpb=ad02580588e2ca41f15ba8f9bd084561d8d485c2 diff --git a/Variable.h b/Variable.h index fc3d83b..57c8e67 100644 --- a/Variable.h +++ b/Variable.h @@ -21,13 +21,13 @@ #import #import "CheaterTypes.h" +#import "Process.h" #include #define TC_MAX_VAR_SIZE (256) - @interface Variable : NSObject < NSCoding > { TCAddress _address; @@ -36,6 +36,8 @@ int _tag; + Process *process; + @public; // use the accessor methods unless you need fast access // do not change these variables directly or things will be screwed. @@ -43,6 +45,7 @@ TCIntegerSign _integerSign; unsigned _size; void *_value; + BOOL _isEmulated; } // ############################################################################# @@ -55,6 +58,11 @@ - (id)initWithType:(TCVariableType)type; // default: TCSigned - (id)initWithType:(TCVariableType)type integerSign:(TCIntegerSign)sign; +- (void)setProcess:(Process *)process; +- (Process *)process; + +- (BOOL)isEmulated; + // ############################################################################# #pragma mark NSCoding // ############################################################################# @@ -81,6 +89,8 @@ - (NSString *)stringValue; - (BOOL)setStringValue:(NSString *)value; +void bigEndianValue(void *buffer, Variable *variable); + - (unsigned)valueSize; - (BOOL)isValueValid;