mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -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:
@ -133,7 +133,7 @@ bool CVolumeDirectory::Read(u64 _Offset, u64 _Length, u8* _pBuffer) const
|
||||
_dbg_assert_(DVDINTERFACE, fileIter->first <= _Offset);
|
||||
u64 fileOffset = _Offset - fileIter->first;
|
||||
|
||||
PlainFileReader* reader = PlainFileReader::Create(fileIter->second.c_str());
|
||||
PlainFileReader* reader = PlainFileReader::Create(fileIter->second);
|
||||
if (reader == nullptr)
|
||||
return false;
|
||||
|
||||
@ -326,12 +326,12 @@ bool CVolumeDirectory::SetApploader(const std::string& _rApploader)
|
||||
}
|
||||
}
|
||||
|
||||
void CVolumeDirectory::SetDOL(const std::string& _rDOL)
|
||||
void CVolumeDirectory::SetDOL(const std::string& rDOL)
|
||||
{
|
||||
if (!_rDOL.empty())
|
||||
if (!rDOL.empty())
|
||||
{
|
||||
std::string data;
|
||||
File::ReadFileToString(_rDOL.c_str(), data);
|
||||
File::ReadFileToString(rDOL, data);
|
||||
m_DOLSize = data.size();
|
||||
m_DOL = new u8[m_DOLSize];
|
||||
copy(data.begin(), data.end(), m_DOL);
|
||||
|
Reference in New Issue
Block a user