Appearance
HardDriveConfig
cpp
#include <Peripherals/Drive/HardDriveTypes.h>cpp
struct HardDriveConfigDefined in Peripherals/Drive/HardDriveTypes.h:124
Configuration options of a hard drive.
Public Attributes
| Return | Name | Description |
|---|---|---|
HardDriveType | type | Drive model. |
i16 | pan | Stereo position of the drive sounds. |
u8 | stepVolume | Head step volume. |
WriteThroughMode | writeThrough | Decides when a change reaches the file (see HardDrive::persist). |
bool | snapshot | Indicates whether a disk is included in snapshots (see HardDrive::serializeDisk). A disk that lives in a file is stored as its path whatever this says – the option is about a disk held in memory, which has nowhere else to go. It cannot be enabled for a disk larger than hdrSnapshotLimit. |
isize | memLimit | Largest disk that may be kept in memory, in MB (1...16384) |
type
cpp
HardDriveType typeType: HardDriveType
Defined in Peripherals/Drive/HardDriveTypes.h:126
Drive model.
pan
cpp
i16 panDefined in Peripherals/Drive/HardDriveTypes.h:127
Stereo position of the drive sounds.
stepVolume
cpp
u8 stepVolumeDefined in Peripherals/Drive/HardDriveTypes.h:128
Head step volume.
writeThrough
cpp
WriteThroughMode writeThroughType: WriteThroughMode
Defined in Peripherals/Drive/HardDriveTypes.h:131
Decides when a change reaches the file (see HardDrive::persist).
snapshot
cpp
bool snapshotDefined in Peripherals/Drive/HardDriveTypes.h:139
Indicates whether a disk is included in snapshots (see HardDrive::serializeDisk). A disk that lives in a file is stored as its path whatever this says – the option is about a disk held in memory, which has nowhere else to go. It cannot be enabled for a disk larger than hdrSnapshotLimit.
memLimit
cpp
isize memLimitDefined in Peripherals/Drive/HardDriveTypes.h:147
Largest disk that may be kept in memory, in MB (1...16384)
A disk that does not live in a file is part of every snapshot, in full. Beyond this size that is no longer practical, so such a disk has to stay in its file (see HardDrive::loadIntoMemory).