| 
 | Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Base
   |
   +--Nes::Api::Cheats
Cheats interface.
| Inner Classes, Typedefs, and Enums | |
| struct | Nes::Api::Cheats::CodeCheat code. | 
| typedef | Nes::Api::Cheats::RAM_SIZECPU RAM pointer reference. | 
| Constructor Summary | |
| Cheats( T& instance )Interface constructor. | |
| Method Summary | |
|  Result | ClearCodes()Removes all existing codes. | 
|  Result | DeleteCode( ulong index )Removes an existing code. | 
|  static Result NST_CALL | GameGenieDecode( const char* string, Nes::Api::Cheats::Code& code )Decodes a Game Genie code. | 
|  static Result NST_CALL | GameGenieEncode( const Nes::Api::Cheats::Code& code, char(& string )[ 9] )Encodes into a Game Genie code. | 
|  Result | GetCode( ulong index, ushort* address, uchar* value, uchar* compare, bool* useCompare ) constReturns attributes of an existing code. | 
|  Result | GetCode( ulong index, Nes::Api::Cheats::Code& code ) constReturns an existing code. | 
|  Ram | GetRam() constReturns read-only content of CPU RAM. | 
|  ulong | NumCodes() constReturns current number of codes. | 
|  static Result NST_CALL | ProActionRockyDecode( const char* string, Nes::Api::Cheats::Code& code )Decodes a Pro-Action Rocky code. | 
|  static Result NST_CALL | ProActionRockyEncode( const Nes::Api::Cheats::Code& code, char(& string )[ 9] )Encodes into a Pro-Action Rocky code. | 
|  Result | SetCode( const Nes::Api::Cheats::Code& code )Adds a new code. | 
| Constructor Detail | 
public Cheats( T& instance );
instance - emulator instance| Method Detail | 
public Result ClearCodes() throw();
public Result DeleteCode( ulong index ) throw();
index - code indexpublic static Result NST_CALL GameGenieDecode( const char* string, Nes::Api::Cheats::Code& code ) throw();
string - Game Genie encoded string
code - object to be filledpublic static Result NST_CALL GameGenieEncode( const Nes::Api::Cheats::Code& code, char(& string )[ 9] ) throw();
code - code to be encoded
string - Game Genie code string to be filledpublic Result GetCode( ulong index, ushort* address, uchar* value, uchar* compare, bool* useCompare ) const throw();
index - code index
address - address to be filled or NULL if not needed
value - value to be filled or NULL if not needed
compare - compare-value to be filled or NULL if not needed
useCompare - compare-value enable to be filled or NULL if not neededpublic Result GetCode( ulong index, Nes::Api::Cheats::Code& code ) const throw();
index - code index
code - object to be filledpublic Ram GetRam() const throw();
public ulong NumCodes() const throw();
public static Result NST_CALL ProActionRockyDecode( const char* string, Nes::Api::Cheats::Code& code ) throw();
string - Pro-Action Rocky encoded string
code - object to be filledpublic static Result NST_CALL ProActionRockyEncode( const Nes::Api::Cheats::Code& code, char(& string )[ 9] ) throw();
code - code to be encoded
string - Pro-Action Rocky code string to be filledpublic Result SetCode( const Nes::Api::Cheats::Code& code ) throw();
code - code, any existing code using the same address will be replaced| 
 | Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||