Skip to content

HardDriveConfig ​

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

Defined in Peripherals/Drive/HardDriveTypes.h:124

Configuration options of a hard drive.

Public Attributes ​

ReturnNameDescription
HardDriveTypetypeDrive model.
i16panStereo position of the drive sounds.
u8stepVolumeHead step volume.
WriteThroughModewriteThroughDecides when a change reaches the file (see HardDrive::persist).
boolsnapshotIndicates 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.
isizememLimitLargest disk that may be kept in memory, in MB (1...16384)

type ​

cpp
HardDriveType type

Type: HardDriveType

Defined in Peripherals/Drive/HardDriveTypes.h:126

Drive model.


pan ​

cpp
i16 pan

Defined in Peripherals/Drive/HardDriveTypes.h:127

Stereo position of the drive sounds.


stepVolume ​

cpp
u8 stepVolume

Defined in Peripherals/Drive/HardDriveTypes.h:128

Head step volume.


writeThrough ​

cpp
WriteThroughMode writeThrough

Type: WriteThroughMode

Defined in Peripherals/Drive/HardDriveTypes.h:131

Decides when a change reaches the file (see HardDrive::persist).


snapshot ​

cpp
bool snapshot

Defined 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 memLimit

Defined 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).