Common/FileUtil: Make WriteStringToFile consistent with ReadFileToString
Makes the parameter ordering consistent and less error-prone.
This commit is contained in:
1 parent
992c8bfc4e
commit
eb475025b8
6 files changed
+13
-13
No files matched your search
@@ -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