#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;
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.
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
// #############################################################################
- (NSString *)stringValue;
- (BOOL)setStringValue:(NSString *)value;
+void bigEndianValue(void *buffer, Variable *variable);
+
- (unsigned)valueSize;
- (BOOL)isValueValid;