mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-12 17:00:54 -04:00
Common/FileUtil: Make WriteStringToFile consistent with ReadFileToString
Makes the parameter ordering consistent and less error-prone.
This commit is contained in:
@@ -141,7 +141,7 @@ bool SaveBinary(const std::vector<u16>& code, const std::string& filename)
|
||||
{
|
||||
const std::string buffer = CodeToBinaryStringBE(code);
|
||||
|
||||
return File::WriteStringToFile(buffer, filename);
|
||||
return File::WriteStringToFile(filename, buffer);
|
||||
}
|
||||
|
||||
bool DumpDSPCode(const u8* code_be, int size_in_bytes, u32 crc)
|
||||
@@ -166,7 +166,7 @@ bool DumpDSPCode(const u8* code_be, int size_in_bytes, u32 crc)
|
||||
if (!Disassemble(code, true, text))
|
||||
return false;
|
||||
|
||||
return File::WriteStringToFile(text, text_file);
|
||||
return File::WriteStringToFile(text_file, text);
|
||||
}
|
||||
|
||||
} // namespace DSP
|
||||
|
||||
Reference in New Issue
Block a user