|
Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Base
|
+--Nes::Api::Fds
Famicom Disk System interface.
| Inner Classes, Typedefs, and Enums | |
typedef |
Nes::Api::Fds::DiskCallback
Disk event callback prototype. |
struct |
Nes::Api::Fds::DiskData
Disk data context. |
typedef |
Nes::Api::Fds::DriveCallback
Drive event callback prototype. |
enum |
Nes::Api::Fds::Event
Disk event. |
enum |
Nes::Api::Fds::Motor
Drive event. |
| Field Summary | |
static Nes::Api::Fds::DiskCaller |
diskCallback
Disk event callback manager. |
static Nes::Api::Fds::DriveCaller |
driveCallback
Drive event callback manager. |
| Constructor Summary | |
Fds( T& instance )
Interface constructor. |
|
| Method Summary | |
bool |
CanChangeDiskSide() const
Checks if the current disk can change side. |
Result |
ChangeSide()
Changes disk side. |
Result |
EjectDisk()
Ejects disk. |
Result |
GetBIOS( std::ostream& stream ) const
Stores the current BIOS in an output stream. |
int |
GetCurrentDisk() const
Returns the current disk inserted. |
int |
GetCurrentDiskSide() const
Returns the current disk side. |
Result |
GetDiskData( uint side, Nes::Api::Fds::DiskData& data ) const
Returns disk information. |
uint |
GetNumDisks() const
Returns the total number of disks. |
uint |
GetNumSides() const
Returns the total number of disks and their sides. |
bool |
HasBIOS() const
Checks if a BIOS has been loaded. |
bool |
HasHeader() const
Checks if the current loaded image comes with a file header. |
Result |
InsertDisk( uint disk, uint side )
Inserts a disk. |
bool |
IsAnyDiskInserted() const
Checks if a disk is inserted. |
Result |
SetBIOS( std::istream* stream )
Sets BIOS. |
| Field Detail |
public static Nes::Api::Fds::DiskCaller diskCallback;
public static Nes::Api::Fds::DriveCaller driveCallback;
| Constructor Detail |
public Fds( T& instance );
instance - emulator instance| Method Detail |
public bool CanChangeDiskSide() const throw();
public Result ChangeSide() throw();
public Result EjectDisk() throw();
public Result GetBIOS( std::ostream& stream ) const throw();
output - streampublic int GetCurrentDisk() const throw();
public int GetCurrentDiskSide() const throw();
public Result GetDiskData( uint side, Nes::Api::Fds::DiskData& data ) const throw();
side - disks and sides index
data - object to be filledpublic uint GetNumDisks() const throw();
public uint GetNumSides() const throw();
public bool HasBIOS() const throw();
public bool HasHeader() const throw();
public Result InsertDisk( uint disk, uint side ) throw();
disk - disk number
side - disk side, 0(A) or 1(B)public bool IsAnyDiskInserted() const throw();
public Result SetBIOS( std::istream* stream ) throw();
input - stream to ROM binary or iNES file, set to NULL to remove current BIOS
|
Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||