| 
 | 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::DiskCallbackDisk event callback prototype. | 
| struct | Nes::Api::Fds::DiskDataDisk data context. | 
| typedef | Nes::Api::Fds::DriveCallbackDrive event callback prototype. | 
| enum | Nes::Api::Fds::EventDisk event. | 
| enum | Nes::Api::Fds::MotorDrive event. | 
| Field Summary | |
|  static Nes::Api::Fds::DiskCaller | diskCallbackDisk event callback manager. | 
|  static Nes::Api::Fds::DriveCaller | driveCallbackDrive event callback manager. | 
| Constructor Summary | |
| Fds( T& instance )Interface constructor. | |
| Method Summary | |
|  bool | CanChangeDiskSide() constChecks if the current disk can change side. | 
|  Result | ChangeSide()Changes disk side. | 
|  Result | EjectDisk()Ejects disk. | 
|  Result | GetBIOS( std::ostream& stream ) constStores the current BIOS in an output stream. | 
|  int | GetCurrentDisk() constReturns the current disk inserted. | 
|  int | GetCurrentDiskSide() constReturns the current disk side. | 
|  Result | GetDiskData( uint side, Nes::Api::Fds::DiskData& data ) constReturns disk information. | 
|  uint | GetNumDisks() constReturns the total number of disks. | 
|  uint | GetNumSides() constReturns the total number of disks and their sides. | 
|  bool | HasBIOS() constChecks if a BIOS has been loaded. | 
|  bool | HasHeader() constChecks if the current loaded image comes with a file header. | 
|  Result | InsertDisk( uint disk, uint side )Inserts a disk. | 
|  bool | IsAnyDiskInserted() constChecks 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 | |||||||