diff options
| author | 2014-09-29 22:05:56 -0400 | |
|---|---|---|
| committer | 2014-09-29 22:05:56 -0400 | |
| commit | 9061cdc9c0f11217f9d937ebdaeec8cbd566a04e (patch) | |
| tree | 30bcdb7a6178ec37b97eac7929b8e92c0e9b0a1b /src/common/file_util.cpp | |
| parent | Merge pull request #118 from lioncash/chunk-file (diff) | |
| parent | Fix warnings in core and common (diff) | |
| download | yuzu-9061cdc9c0f11217f9d937ebdaeec8cbd566a04e.tar.gz yuzu-9061cdc9c0f11217f9d937ebdaeec8cbd566a04e.tar.xz yuzu-9061cdc9c0f11217f9d937ebdaeec8cbd566a04e.zip | |
Merge pull request #120 from lioncash/core-common
Fix warnings in core and common
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 40cd32d96..9292a1cd6 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp | |||
| @@ -763,12 +763,12 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string &new | |||
| 763 | // return dir; | 763 | // return dir; |
| 764 | //} | 764 | //} |
| 765 | 765 | ||
| 766 | bool WriteStringToFile(bool text_file, const std::string &str, const char *filename) | 766 | size_t WriteStringToFile(bool text_file, const std::string &str, const char *filename) |
| 767 | { | 767 | { |
| 768 | return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size()); | 768 | return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size()); |
| 769 | } | 769 | } |
| 770 | 770 | ||
| 771 | bool ReadFileToString(bool text_file, const char *filename, std::string &str) | 771 | size_t ReadFileToString(bool text_file, const char *filename, std::string &str) |
| 772 | { | 772 | { |
| 773 | FileUtil::IOFile file(filename, text_file ? "r" : "rb"); | 773 | FileUtil::IOFile file(filename, text_file ? "r" : "rb"); |
| 774 | auto const f = file.GetHandle(); | 774 | auto const f = file.GetHandle(); |