|
Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Base
|
+--Nes::Api::Cartridge
Cartridge interface.
| Inner Classes, Typedefs, and Enums | |
typedef |
Nes::Api::Cartridge::ChooseProfileCallback
Cartridge profile chooser callback prototype. |
class |
Nes::Api::Cartridge::Database
Database interface |
struct |
Nes::Api::Cartridge::NesHeader
iNES header format context. |
struct |
Nes::Api::Cartridge::Profile
Cartridge profile context. |
| Field Summary | |
static Nes::Api::Cartridge::ChooseProfileCaller |
chooseProfileCallback
Cartridge profile chooser callback manager. |
| Constructor Summary | |
Cartridge( T& instance )
Interface constructor. |
|
| Method Summary | |
Nes::Api::Cartridge::Database |
GetDatabase()
Returns the database interface. |
const Nes::Api::Cartridge::Profile* |
GetProfile() const
Returns the current cartridge profile. |
static Result |
ReadInes( std::istream& stream, Machine::FavoredSystem system, Nes::Api::Cartridge::Profile& profile )
Creates a profile of an iNES file. |
static Result |
ReadRomset( std::istream& stream, Machine::FavoredSystem system, bool askProfile, Nes::Api::Cartridge::Profile& profile )
Creates a profile of an XML ROM set file. |
static Result |
ReadUnif( std::istream& stream, Machine::FavoredSystem system, Nes::Api::Cartridge::Profile& profile )
Creates a profile of a UNIF file. |
| Field Detail |
public static Nes::Api::Cartridge::ChooseProfileCaller chooseProfileCallback;
| Constructor Detail |
public Cartridge( T& instance );
instance - emulator instance| Method Detail |
public Nes::Api::Cartridge::Database GetDatabase() throw();
public const Nes::Api::Cartridge::Profile* GetProfile() const throw();
public static Result ReadInes( std::istream& stream, Machine::FavoredSystem system, Nes::Api::Cartridge::Profile& profile ) throw();
stream - input stream to iNES file
system - preferred system in case of multiple profiles
profile - object to be filledpublic static Result ReadRomset( std::istream& stream, Machine::FavoredSystem system, bool askProfile, Nes::Api::Cartridge::Profile& profile ) throw();
stream - input stream to XML file
system - preferred system in case of multiple profiles
askProfile - allow callback triggering for choosing between multiple profiles
profile - object to be filledpublic static Result ReadUnif( std::istream& stream, Machine::FavoredSystem system, Nes::Api::Cartridge::Profile& profile ) throw();
stream - input stream to UNIF file
system - preferred system in case of multiple profiles
profile - object to be filled
|
Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||