-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcleanCLS.h
141 lines (141 loc) · 2.28 KB
/
cleanCLS.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#ifndef CLEANCLS_H_
#define CLEANCLS_H_
#include "cleanType.h"
// Hook
class ORG : public wxClientData
{
public:
ORG( void );
~ORG( void );
public:
bool isDefault;
xStr oldName;
xStr oldFile;
xStr nowName;
xStr nowFile;
};
class PFM : public ORG
{
public:
PFM( void );
~PFM( void );
public:
s8 endian;
};
class RAM
{
public:
RAM( void );
~RAM( void );
public:
xStr name;
u8 ptrDepth;
u64 byte;
u64 size;
};
class BIN : public ORG
{
public:
BIN( void );
~BIN( void );
RAM& operator[] ( unsigned int index );
RAM& operator[] ( signed int index );
public:
std::vector< RAM > p_data;
public:
xStr bind;
xStr path;
bool isFile;
s8 Append( RAM ram );
void SetCount( s8 count );
s8 GetCount( void );
void Clear();
};
// Results
class OUTDATA
{
public:
OUTDATA( void );
~OUTDATA( void );
private:
void Clear( void );
public:
u64 address;
u64 value;
u8 size;
};
// Database
class DBI : public wxClientData
{
public:
DBI( void );
~DBI( void );
public:
s32 index;
};
class DBP : public ORG
{
public:
DBP( void );
~DBP( void );
public:
u32 area;
xStr format; // Use Drop down
u16 PID;
xStr SID;
xStr notes;
};
// Tree
// - Code
class CODE
{
public:
CODE( void );
~CODE( void );
u64& operator[] ( s32 index );
u64& operator[] ( u32 index );
private:
std::vector< u64 > p_value;
public:
u8 ram;
u8 type;
u32 size;
u8 test;
u64 slide;
u16 loop;
u8 ptrDepth;
u64 byte;
u32 increment;
bool isBigByte;
public:
void SetCount( s16 count );
u8 GetCount( void );
s16 NewItem( u64 value );
void DelItem( s16 index );
void DelAll( void );
void Clear();
};
// Hack
#define HACK_USE 0x1000
#define HACK_RB 0x2000
class HACK : public wxTreeItemData
{
public:
HACK( void );
~HACK( void );
CODE& operator[] ( s32 index );
CODE& operator[] ( u32 index );
private:
std::vector< CODE > p_data;
public:
u16 id;
bool use;
bool useRB;
public:
void SetCount( s8 index );
s8 GetCount( void );
s8 NewCode( CODE code );
void DelCode( s8 index );
void Clear();
};
#endif