summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-28 17:45:36 -0400
committerLioncash <mathew1800@gmail.com>2019-05-29 07:06:53 -0400
commiteb475025b85686f4793bb83bac377033c17fbd2d (patch)
tree3a5c8e36cab1dae1e4e36ef243d44f540f2c55f1 /Source/Core/Common
parent992c8bfc4e2394ad5786f5116f5e62ae595b5c44 (diff)
Common/FileUtil: Make WriteStringToFile consistent with ReadFileToString
Makes the parameter ordering consistent and less error-prone.
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/FileUtil.cpp2
-rw-r--r--Source/Core/Common/FileUtil.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp
index 7030c9dc25..826d430b62 100644
--- a/Source/Core/Common/FileUtil.cpp
+++ b/Source/Core/Common/FileUtil.cpp
@@ -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());
}
diff --git a/Source/Core/Common/FileUtil.h b/Source/Core/Common/FileUtil.h
index 71e9709da3..cccb28e218 100644
--- a/Source/Core/Common/FileUtil.h
+++ b/Source/Core/Common/FileUtil.h
@@ -198,7 +198,7 @@ std::string GetBundleDirectory();
std::string GetExePath();
std::string GetExeDirectory();
-bool WriteStringToFile(const std::string& str, const std::string& filename);
+bool WriteStringToFile(const std::string& filename, const std::string& str);
bool ReadFileToString(const std::string& filename, std::string& str);
// To deal with Windows being dumb at unicode: