diff options
author | Vas Crabb <vas@vastheman.com> | 2021-03-31 01:56:32 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2021-03-31 01:56:32 +1100 |
commit | 9cfe9342a7a6c36a05872de985bb63b42f7e870f (patch) | |
tree | c25e418784a2a928bf94592b5a7c7d349875374f /src/lib | |
parent | 2caa566f22606682ee432c410d40376335e12b02 (diff) |
Miscellaneous formatting adjustments
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/util/cdrom.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/util/cdrom.cpp b/src/lib/util/cdrom.cpp index cb899afa96b..4f12856dd7f 100644 --- a/src/lib/util/cdrom.cpp +++ b/src/lib/util/cdrom.cpp @@ -16,13 +16,13 @@ ***************************************************************************/ -#include <cassert> - #include "cdrom.h" -#include <cstdlib> #include "chdcd.h" +#include <cassert> +#include <cstdlib> + /*************************************************************************** DEBUGGING @@ -484,7 +484,8 @@ chd_error read_partial_sector(cdrom_file *file, void *dest, uint32_t lbasector, // if a CHD, just read if (file->chd != nullptr) { - if (!phys && file->cdtoc.tracks[tracknum].pgdatasize != 0) { + if (!phys && file->cdtoc.tracks[tracknum].pgdatasize != 0) + { // chdman (phys=true) relies on chdframeofs to point to index 0 instead of index 1 for extractcd. // Actually playing CDs requires it to point to index 1 instead of index 0, so adjust the offset when phys=false. chdsector += file->cdtoc.tracks[tracknum].pregap; @@ -492,7 +493,7 @@ chd_error read_partial_sector(cdrom_file *file, void *dest, uint32_t lbasector, result = file->chd->read_bytes(uint64_t(chdsector) * uint64_t(CD_FRAME_SIZE) + startoffs, dest, length); - /* swap CDDA in the case of LE GDROMs */ + // swap CDDA in the case of LE GDROMs if ((file->cdtoc.flags & CD_FLAG_GDROMLE) && (file->cdtoc.tracks[tracknum].trktype == CD_TRACK_AUDIO)) needswap = true; } |