]> Dogcows Code - chaz/thecheat/blobdiff - Variable.h
The Cheat 1.2.4
[chaz/thecheat] / Variable.h
index fc3d83b9b73b449b94d44102d95ef3320256bb37..57c8e67cb7f4b1303a281a06b0a457b84db393f2 100644 (file)
 #import <Cocoa/Cocoa.h>
 
 #import "CheaterTypes.h"
+#import "Process.h"
 
 #include <string.h>
 
 
 #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;
 }
 
 // #############################################################################
 - (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;
 
This page took 0.019336 seconds and 4 git commands to generate.