mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Kill off some usages of c_str.
Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
This commit is contained in:
@ -33,7 +33,8 @@ void SectorReader::SetSectorSize(int blocksize)
|
||||
m_blocksize = blocksize;
|
||||
}
|
||||
|
||||
SectorReader::~SectorReader() {
|
||||
SectorReader::~SectorReader()
|
||||
{
|
||||
for (u8*& block : cache)
|
||||
{
|
||||
delete [] block;
|
||||
@ -100,6 +101,7 @@ bool SectorReader::Read(u64 offset, u64 size, u8* out_ptr)
|
||||
block++;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -112,12 +114,13 @@ bool SectorReader::ReadMultipleAlignedBlocks(u64 block_num, u64 num_blocks, u8 *
|
||||
return false;
|
||||
memcpy(out_ptr + i * m_blocksize, data, m_blocksize);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
IBlobReader* CreateBlobReader(const char* filename)
|
||||
IBlobReader* CreateBlobReader(const std::string& filename)
|
||||
{
|
||||
if (cdio_is_cdrom(std::string(filename)))
|
||||
if (cdio_is_cdrom(filename))
|
||||
return DriveReader::Create(filename);
|
||||
|
||||
if (!File::Exists(filename))
|
||||
|
Reference in New Issue
Block a user