summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-04-24 14:14:49 +1000
committer Vas Crabb <vas@vastheman.com>2022-04-24 14:14:49 +1000
commit25c64006b7ca4bbb0d575b46c6c5c4f214dac7ed (patch)
tree6f0399117a96c25ad14dcd80990b0262a6953592 /src/lib/util
parent6c247d5a92b46292ee54554b41df32f7a56372f3 (diff)
srcclean in preparation for 0.243
Diffstat (limited to 'src/lib/util')
-rw-r--r--src/lib/util/cdrom.cpp28
-rw-r--r--src/lib/util/cdrom.h10
-rw-r--r--src/lib/util/corefile.cpp2
3 files changed, 20 insertions, 20 deletions
diff --git a/src/lib/util/cdrom.cpp b/src/lib/util/cdrom.cpp
index 2d0bb031a65..0162dc87c0d 100644
--- a/src/lib/util/cdrom.cpp
+++ b/src/lib/util/cdrom.cpp
@@ -216,20 +216,20 @@ cdrom_file::cdrom_file(std::string_view inputfile)
if (EXTRA_VERBOSE)
printf("Track %02d is format %d subtype %d datasize %d subsize %d frames %d extraframes %d pregap %d pgmode %d presize %d postgap %d logofs %d physofs %d chdofs %d logframes %d\n", i+1,
- track.trktype,
- track.subtype,
- track.datasize,
- track.subsize,
- track.frames,
- track.extraframes,
- track.pregap,
- track.pgtype,
- track.pgdatasize,
- track.postgap,
- track.logframeofs,
- track.physframeofs,
- track.chdframeofs,
- track.logframes);
+ track.trktype,
+ track.subtype,
+ track.datasize,
+ track.subsize,
+ track.frames,
+ track.extraframes,
+ track.pregap,
+ track.pgtype,
+ track.pgdatasize,
+ track.postgap,
+ track.logframeofs,
+ track.physframeofs,
+ track.chdframeofs,
+ track.logframes);
}
// fill out dummy entries for the last track to help our search
diff --git a/src/lib/util/cdrom.h b/src/lib/util/cdrom.h
index b74b50a8190..8e911e92e91 100644
--- a/src/lib/util/cdrom.h
+++ b/src/lib/util/cdrom.h
@@ -184,11 +184,11 @@ public:
static inline uint32_t lba_to_msf_alt(int lba)
{
uint32_t ret = 0;
-
+
ret |= ((lba / (60 * 75))&0xff)<<16;
ret |= (((lba / 75) % 60)&0xff)<<8;
ret |= ((lba % 75)&0xff)<<0;
-
+
return ret;
}
@@ -210,17 +210,17 @@ private:
static constexpr int SYNC_OFFSET = 0x000;
/** @brief 12 bytes. */
static constexpr int SYNC_NUM_BYTES = 12;
-
+
/** @brief offset within sector. */
static constexpr int MODE_OFFSET = 0x00f;
-
+
/** @brief offset within sector. */
static constexpr int ECC_P_OFFSET = 0x81c;
/** @brief 2 lots of 86. */
static constexpr int ECC_P_NUM_BYTES = 86;
/** @brief 24 bytes each. */
static constexpr int ECC_P_COMP = 24;
-
+
/** @brief The ECC q offset. */
static constexpr int ECC_Q_OFFSET = ECC_P_OFFSET + 2 * ECC_P_NUM_BYTES;
/** @brief 2 lots of 52. */
diff --git a/src/lib/util/corefile.cpp b/src/lib/util/corefile.cpp
index fd26ddaf40e..6bb6a043a04 100644
--- a/src/lib/util/corefile.cpp
+++ b/src/lib/util/corefile.cpp
@@ -128,7 +128,7 @@ public:
virtual std::error_condition length(std::uint64_t &result) noexcept override { result = m_size; return std::error_condition(); }
virtual bool eof() const override;
-
+
protected:
core_basic_file(std::uint32_t openflags, std::uint64_t length) noexcept
: core_text_file(openflags)