Skip to content

HardDriveInfo ​

cpp
#include <Peripherals/Drive/HardDriveTypes.h>
cpp
struct HardDriveInfo

Defined in Peripherals/Drive/HardDriveTypes.h:196

State of a hard drive.

Public Attributes ​

ReturnNameDescription
isizenrNumber of the drive.
boolisConnectedDrive properties.
boolisCompatibleThe drive is compatible with the emulated controller.
boolhasDiskDisk properties.
boolhasModifiedDiskThe disk has unsaved changes.
boolhasUnmodifiedDiskThe disk has no unsaved changes.
boolhasProtectedDiskThe disk is write-protected.
boolhasUnprotectedDiskThe disk is not write-protected.
boolsnapshotableThe disk can be included in snapshots.
isizepartitionsLogical layout (partitions).
boolwriteProtectedFlags.
boolmodifiedThe guest has written to the disk since it was attached, or since it was last marked as unmodified (e.g. by exporting it). What an unsaved-changes warning wants to know; it also applies to a disk that has no file. Persisting does not clear it.
booldirtyThe disk holds changes its file does not have yet, i.e. persist() has something to do. Only a disk that lives in a file can be dirty, and persisting clears it. Changes that do not come from the guest (formatting, importing a folder) make a disk dirty without making it modified.
HardDriveStatestateState.
DriveHeadheadPosition of the drive head.

nr ​

cpp
isize nr

Defined in Peripherals/Drive/HardDriveTypes.h:198

Number of the drive.


isConnected ​

cpp
bool isConnected

Defined in Peripherals/Drive/HardDriveTypes.h:201

Drive properties.


isCompatible ​

cpp
bool isCompatible

Defined in Peripherals/Drive/HardDriveTypes.h:202

The drive is compatible with the emulated controller.


hasDisk ​

cpp
bool hasDisk

Defined in Peripherals/Drive/HardDriveTypes.h:205

Disk properties.


hasModifiedDisk ​

cpp
bool hasModifiedDisk

Defined in Peripherals/Drive/HardDriveTypes.h:206

The disk has unsaved changes.


hasUnmodifiedDisk ​

cpp
bool hasUnmodifiedDisk

Defined in Peripherals/Drive/HardDriveTypes.h:207

The disk has no unsaved changes.


hasProtectedDisk ​

cpp
bool hasProtectedDisk

Defined in Peripherals/Drive/HardDriveTypes.h:208

The disk is write-protected.


hasUnprotectedDisk ​

cpp
bool hasUnprotectedDisk

Defined in Peripherals/Drive/HardDriveTypes.h:209

The disk is not write-protected.


snapshotable ​

cpp
bool snapshotable

Defined in Peripherals/Drive/HardDriveTypes.h:210

The disk can be included in snapshots.


partitions ​

cpp
isize partitions

Defined in Peripherals/Drive/HardDriveTypes.h:213

Logical layout (partitions).


writeProtected ​

cpp
bool writeProtected

Defined in Peripherals/Drive/HardDriveTypes.h:216

Flags.


modified ​

cpp
bool modified

Defined in Peripherals/Drive/HardDriveTypes.h:223

The guest has written to the disk since it was attached, or since it was last marked as unmodified (e.g. by exporting it). What an unsaved-changes warning wants to know; it also applies to a disk that has no file. Persisting does not clear it.


dirty ​

cpp
bool dirty

Defined in Peripherals/Drive/HardDriveTypes.h:230

The disk holds changes its file does not have yet, i.e. persist() has something to do. Only a disk that lives in a file can be dirty, and persisting clears it. Changes that do not come from the guest (formatting, importing a folder) make a disk dirty without making it modified.


state ​

cpp
HardDriveState state

Type: HardDriveState

Defined in Peripherals/Drive/HardDriveTypes.h:233

State.


cpp
DriveHead head

Type: DriveHead

Defined in Peripherals/Drive/HardDriveTypes.h:234

Position of the drive head.