Appearance
HardDriveInfo
cpp
#include <Peripherals/Drive/HardDriveTypes.h>cpp
struct HardDriveInfoDefined in Peripherals/Drive/HardDriveTypes.h:196
State of a hard drive.
Public Attributes
| Return | Name | Description |
|---|---|---|
isize | nr | Number of the drive. |
bool | isConnected | Drive properties. |
bool | isCompatible | The drive is compatible with the emulated controller. |
bool | hasDisk | Disk properties. |
bool | hasModifiedDisk | The disk has unsaved changes. |
bool | hasUnmodifiedDisk | The disk has no unsaved changes. |
bool | hasProtectedDisk | The disk is write-protected. |
bool | hasUnprotectedDisk | The disk is not write-protected. |
bool | snapshotable | The disk can be included in snapshots. |
isize | partitions | Logical layout (partitions). |
bool | writeProtected | Flags. |
bool | modified | 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. |
bool | dirty | 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. |
HardDriveState | state | State. |
DriveHead | head | Position of the drive head. |
nr
cpp
isize nrDefined in Peripherals/Drive/HardDriveTypes.h:198
Number of the drive.
isConnected
cpp
bool isConnectedDefined in Peripherals/Drive/HardDriveTypes.h:201
Drive properties.
isCompatible
cpp
bool isCompatibleDefined in Peripherals/Drive/HardDriveTypes.h:202
The drive is compatible with the emulated controller.
hasDisk
cpp
bool hasDiskDefined in Peripherals/Drive/HardDriveTypes.h:205
Disk properties.
hasModifiedDisk
cpp
bool hasModifiedDiskDefined in Peripherals/Drive/HardDriveTypes.h:206
The disk has unsaved changes.
hasUnmodifiedDisk
cpp
bool hasUnmodifiedDiskDefined in Peripherals/Drive/HardDriveTypes.h:207
The disk has no unsaved changes.
hasProtectedDisk
cpp
bool hasProtectedDiskDefined in Peripherals/Drive/HardDriveTypes.h:208
The disk is write-protected.
hasUnprotectedDisk
cpp
bool hasUnprotectedDiskDefined in Peripherals/Drive/HardDriveTypes.h:209
The disk is not write-protected.
snapshotable
cpp
bool snapshotableDefined in Peripherals/Drive/HardDriveTypes.h:210
The disk can be included in snapshots.
partitions
cpp
isize partitionsDefined in Peripherals/Drive/HardDriveTypes.h:213
Logical layout (partitions).
writeProtected
cpp
bool writeProtectedDefined in Peripherals/Drive/HardDriveTypes.h:216
Flags.
modified
cpp
bool modifiedDefined 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 dirtyDefined 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 stateType: HardDriveState
Defined in Peripherals/Drive/HardDriveTypes.h:233
State.
head
cpp
DriveHead headType: DriveHead
Defined in Peripherals/Drive/HardDriveTypes.h:234
Position of the drive head.