VirtualC64 v5.0 beta
Commodore 64 Emulator
Loading...
Searching...
No Matches
DriveAPI Struct Reference

Drive Public API. More...

#include <VirtualC64.h>

Public Member Functions

const DriveConfig & getConfig () const
 Returns the component's current configuration.
 
const DriveInfo & getInfo () const
 Returns the component's current state.
 
void insertBlankDisk (DOSType fstype, string name)
 Inserts a new disk.
 
void insertMedia (MediaFile &file, bool wp)
 Inserts a disk created from a media file.
 
void insertFileSystem (const class FileSystem &fs, bool wp)
 Inserts a disk created from a file system.
 
void ejectDisk ()
 Ejects the current disk.
 

Detailed Description

Drive Public API.

Member Function Documentation

◆ insertBlankDisk()

void insertBlankDisk ( DOSType fstype,
string name )

Inserts a new disk.

Parameters
fstypeThe file system the disk should be formatted with.
nameA PET string with the name of the new disk.

◆ insertFileSystem()

void insertFileSystem ( const class FileSystem & fs,
bool wp )

Inserts a disk created from a file system.

Parameters
fsA file system wrapper object.
wpWrite-protection status of the disk.

◆ insertMedia()

void insertMedia ( MediaFile & file,
bool wp )

Inserts a disk created from a media file.

Parameters
fileA media file wrapper object.
wpWrite-protection status of the disk.

The documentation for this struct was generated from the following files: