Cheat_Code How do I cheat?
Reputation: 1
Joined: 28 Feb 2013 Posts: 5
|
Posted: Thu Feb 28, 2013 11:17 pm Post subject: C++ | Cheat_Code: Documentation |
|
|
NOTE: THIS POST IS NOT COMPLETED!
Class Cheat_Code::Cheat
Constructors
Class Cheat_Code::Cheat has two constructors. One constructor is a default constructor and the other constructor is not.
Default constructor:
There are nothing that we really need to know about
the default constructor.
The "main constructor":
| Code: | Cheat( __in unsigned long p_Address,
__in char* p_EnableBytes,
__in char* p_DisableBytes,
__in unsigned int p_EnableBytesLength,
__in unsigned int p_DisableBytesLength,
__in bool p_Enabled,
__in_opt unsigned int p_Flags = CheatFlags::None
); |
The main constructor has 7 parameters. The first 6 parameter are needed for initialization.
The last parameter (p_Flags) is optional. Lets learn about each parameters of the main
constructor.
Parameters
Again, the main constructor has 7 parameters.
Parameter 1:
| Code: | | __in unsigned long p_Address |
Description: This parameter sets the value of public class member: Address.
Parameter 2:
| Code: | | __in char* p_EnableBytes |
Description: This parameter sets the value of public class member: EnableBytes.
Parameter 3:
| Code: | | __in char* p_DisableBytes |
Description: This parameter sets the value of public class member: DisableBytes.
Parameter 4:
| Code: | | __in unsigned int p_EnableBytesLength |
Description: This parameter sets the value of public class member: EnableBytesLength.
Parameter 5:
| Code: | | __in unsigned int p_DisableBytesLength |
Description: This parameter sets the value of public class member: DisableBytesLength.
Parameter 6:
| Code: | | __in unsigned int p_Enabled |
Description: If the inputted value is equal to true, public class function: int Enable( __in bool p_Enable ); will be executed.
Parameter 7:
| Code: | | __in_opt unsigned int p_Flags |
Description: This parameter is a optional. It is also a bit more complex and could be confusing.
Please read about public class struct: struct FLAG_STRUCT.
Structures
Public Class Structure Cheat_Code::Cheat::FLAG_STRUCT
| Code: | typedef struct FLAG_STRUCT
{
enum __Flags
{
None = 0x00,
EnableBytes_NOP = 0x01,
#pragma region NO MIXING
DisableBytes_NOP = 0x02,
DisableBytes_Original = 0x04,
DisableBytes_OriginalEx = 0x08,
#pragma endregion
AutoDisable = 0x10
};
} CheatFlags; |
Flag:
| Code: | | Cheat_Code::Cheat::CheatFlags::None |
Description:
There are nothing about this flag that we need to know about.
So, don't worry about it.
Flag:
| Code: | | Cheat_Code::Cheat::CheatFlags::EnableBytes_NOP |
Description:
This flag will trigger an event that will initialize EnableBytes by filling it with NOPs (0x90).
Requires:
Public class member: EnableBytesLength
Flag:
| Code: | | Cheat_Code::Cheat::CheatFlags::DisableBytes_NOP |
Description:
This flag will trigger an event that will initialize DisableBytes by filling it with NOPs (0x90).
Requires:
Public class member: DisableBytesLength
Flag:
| Code: | | Cheat_Code::Cheat::CheatFlags::DisableBytes_Original |
Description:
This flag will trigger an event that will copy x certain amount of "original" bytes to the public class member: DisableBytes.
x is equal to the value of public class member: DisableBytesLength.
Requires:
Public class member: DisableBytesLength
Flag:
| Code: | | Cheat_Code::Cheat::CheatFlags::DisableBytes_OriginalEx |
Description:
This flag will trigger an event that will copy x certain amount of "original" bytes to the public class member: DisableBytes.
x is equal to the value of public class member: EnableBytesLength.
Requires:
Public class member: EnableBytesLength
Flag:
| Code: | | Cheat_Code::Cheat::CheatFlags::AutoDisable |
Description:
Once the object of class Cheat is done being utilized, and if this flag is inputted, it will disable
the object.
Requires:
Public class member: DisableBytes
Public class member: DisableBytesLength
Note:
These are the following flags that are not be "mixed" together:
DisableBytes_NOP, DisableBytes_Original, DisableBytes_OriginalEx
Functions
| Code: | | int Enable( __in bool p_Enable ); |
|
|