Skip to content

Commit bbf7472

Browse files
committed
CDImage: Make MDS class name consistent with others
1 parent 7dd7a43 commit bbf7472

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/util/cd_image_mds.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ struct TrackEntry
3838
static_assert(sizeof(TrackEntry) == 0x50, "TrackEntry is 0x50 bytes");
3939
#pragma pack(pop)
4040

41-
class CDImageMds : public CDImage
41+
class CDImageMDS : public CDImage
4242
{
4343
public:
44-
CDImageMds();
45-
~CDImageMds() override;
44+
CDImageMDS();
45+
~CDImageMDS() override;
4646

4747
bool OpenAndParse(const char* filename, Error* error);
4848

@@ -58,15 +58,15 @@ class CDImageMds : public CDImage
5858

5959
} // namespace
6060

61-
CDImageMds::CDImageMds() = default;
61+
CDImageMDS::CDImageMDS() = default;
6262

63-
CDImageMds::~CDImageMds()
63+
CDImageMDS::~CDImageMDS()
6464
{
6565
if (m_mdf_file)
6666
std::fclose(m_mdf_file);
6767
}
6868

69-
bool CDImageMds::OpenAndParse(const char* filename, Error* error)
69+
bool CDImageMDS::OpenAndParse(const char* filename, Error* error)
7070
{
7171
std::FILE* mds_fp = FileSystem::OpenSharedCFile(filename, "rb", FileSystem::FileShareMode::DenyWrite, error);
7272
if (!mds_fp)
@@ -243,7 +243,7 @@ bool CDImageMds::OpenAndParse(const char* filename, Error* error)
243243
return Seek(1, Position{0, 0, 0});
244244
}
245245

246-
bool CDImageMds::ReadSectorFromIndex(void* buffer, const Index& index, LBA lba_in_index)
246+
bool CDImageMDS::ReadSectorFromIndex(void* buffer, const Index& index, LBA lba_in_index)
247247
{
248248
const u64 file_position = index.file_offset + (static_cast<u64>(lba_in_index) * index.file_sector_size);
249249
if (m_mdf_file_position != file_position)
@@ -266,14 +266,14 @@ bool CDImageMds::ReadSectorFromIndex(void* buffer, const Index& index, LBA lba_i
266266
return true;
267267
}
268268

269-
s64 CDImageMds::GetSizeOnDisk() const
269+
s64 CDImageMDS::GetSizeOnDisk() const
270270
{
271271
return FileSystem::FSize64(m_mdf_file);
272272
}
273273

274274
std::unique_ptr<CDImage> CDImage::OpenMdsImage(const char* path, Error* error)
275275
{
276-
std::unique_ptr<CDImageMds> image = std::make_unique<CDImageMds>();
276+
std::unique_ptr<CDImageMDS> image = std::make_unique<CDImageMDS>();
277277
if (!image->OpenAndParse(path, error))
278278
return {};
279279

0 commit comments

Comments
 (0)