| 
 | Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Database interface
| Inner Classes, Typedefs, and Enums | |
| class | Nes::Api::Cartridge::Database::EntryDatabase entry. | 
| Constructor Summary | |
| Database( Core::Machine& instance )Interface constructor. | |
| Method Summary | |
|  Result | Enable( bool state = true )Enables image corrections. | 
|  Nes::Api::Cartridge::Database::Entry | FindEntry( const void* mem, ulong size, Machine::FavoredSystem system ) constAttempts to locate and return an entry from one of the databases. | 
|  Nes::Api::Cartridge::Database::Entry | FindEntry( const Profile::Hash& hash, Machine::FavoredSystem system ) constAttempts to locate and return an entry from one of the databases. | 
|  bool | IsEnabled() constChecks if image corrections are enabled. | 
|  bool | IsLoaded() constChecks if any database has been loaded into the system. | 
|  Result | Load( std::istream& streamInternal, std::istream& streamExternal )Resets and loads internal and external XML databases. | 
|  Result | Load( std::istream& stream )Resets and loads internal XML database. | 
|  void | Unload()Removes all databases from the system. | 
| Constructor Detail | 
public Database( Core::Machine& instance );
instance - emulator instance| Method Detail | 
public Result Enable( bool state = true ) throw();
state - true to enable, default is truepublic Nes::Api::Cartridge::Database::Entry FindEntry( const void* mem, ulong size, Machine::FavoredSystem system ) const throw();
mem - pointer to memory of combined ROMs
size - size of memory
system - preferred system in case of multiple profilespublic Nes::Api::Cartridge::Database::Entry FindEntry( const Profile::Hash& hash, Machine::FavoredSystem system ) const throw();
hash - hash code of combined ROMs
system - preferred system in case of multiple profilespublic bool IsEnabled() const throw();
public bool IsLoaded() const throw();
public Result Load( std::istream& streamInternal, std::istream& streamExternal ) throw();
streamInternal - input stream to internal XML database
streamExternal - input stream to external XML databasepublic Result Load( std::istream& stream ) throw();
stream - input streampublic void Unload() throw();
| 
 | Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||