mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-09 12:08:05 +03:00
Fix {Read,Write}FileToString.
We should be using binary always.
This commit is contained in:
parent
3f1ea21e4f
commit
e15f628935
12 changed files with 35 additions and 58 deletions
|
@ -287,7 +287,7 @@ bool CVolumeDirectory::SetApploader(const std::string& _rApploader)
|
|||
if (!_rApploader.empty())
|
||||
{
|
||||
std::string data;
|
||||
if (!File::ReadFileToString(false, _rApploader.c_str(), data))
|
||||
if (!File::ReadFileToString(_rApploader.c_str(), data))
|
||||
{
|
||||
PanicAlertT("Apploader unable to load from file");
|
||||
return false;
|
||||
|
@ -320,7 +320,7 @@ void CVolumeDirectory::SetDOL(const std::string& _rDOL)
|
|||
if (!_rDOL.empty())
|
||||
{
|
||||
std::string data;
|
||||
File::ReadFileToString(false, _rDOL.c_str(), data);
|
||||
File::ReadFileToString(_rDOL.c_str(), data);
|
||||
m_DOLSize = data.size();
|
||||
m_DOL = new u8[m_DOLSize];
|
||||
copy(data.begin(), data.end(), m_DOL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue