mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
Common/FileUtil: Make WriteStringToFile consistent with ReadFileToString
Makes the parameter ordering consistent and less error-prone.
This commit is contained in:
parent
992c8bfc4e
commit
eb475025b8
6 changed files with 13 additions and 13 deletions
|
@ -887,7 +887,7 @@ std::string GetThemeDir(const std::string& theme_name)
|
|||
return GetSysDirectory() + THEMES_DIR "/" DEFAULT_THEME_DIR "/";
|
||||
}
|
||||
|
||||
bool WriteStringToFile(const std::string& str, const std::string& filename)
|
||||
bool WriteStringToFile(const std::string& filename, const std::string& str)
|
||||
{
|
||||
return File::IOFile(filename, "wb").WriteBytes(str.data(), str.size());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue