1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-24 05:18:36 +00:00

Further remove type info from function naming.

This commit is contained in:
Thomas Harte
2025-02-26 16:00:34 -05:00
parent b44ea31bbf
commit 1db756063b
23 changed files with 192 additions and 188 deletions
+3 -3
View File
@@ -36,12 +36,12 @@ DMK::DMK(const std::string &file_name) :
file_(file_name) {
// Determine whether this DMK represents a read-only disk (whether intentionally,
// or by virtue of filesystem placement).
uint8_t read_only_byte = file_.get8();
uint8_t read_only_byte = file_.get();
if(read_only_byte != 0x00 && read_only_byte != 0xff) throw Error::InvalidFormat;
is_read_only_ = (read_only_byte == 0xff) || file_.get_is_known_read_only();
// Read track count and size.
head_position_count_ = int(file_.get8());
head_position_count_ = int(file_.get());
track_length_ = long(file_.get_le<uint16_t>());
// Track length must be at least 0x80, as that's the size of the IDAM
@@ -49,7 +49,7 @@ DMK::DMK(const std::string &file_name) :
if(track_length_ < 0x80) throw Error::InvalidFormat;
// Read the file flags and apply them.
uint8_t flags = file_.get8();
uint8_t flags = file_.get();
head_count_ = 2 - ((flags & 0x10) >> 4);
head_position_count_ /= head_count_;
is_purely_single_density_ = !!(flags & 0x40);