diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-28 00:18:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 00:18:31 +0200 |
commit | 2562fe4a16c823013336044844a995c185e2e06b (patch) | |
tree | 627cc10c185eee85f7a88ab1468cd4414f9fd947 | |
parent | Merge pull request #1175 from lioncash/ns (diff) | |
parent | file_util: Correct return value in early exit of ReadFileToString() (diff) | |
download | yuzu-2562fe4a16c823013336044844a995c185e2e06b.tar yuzu-2562fe4a16c823013336044844a995c185e2e06b.tar.gz yuzu-2562fe4a16c823013336044844a995c185e2e06b.tar.bz2 yuzu-2562fe4a16c823013336044844a995c185e2e06b.tar.lz yuzu-2562fe4a16c823013336044844a995c185e2e06b.tar.xz yuzu-2562fe4a16c823013336044844a995c185e2e06b.tar.zst yuzu-2562fe4a16c823013336044844a995c185e2e06b.zip |
-rw-r--r-- | src/common/file_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index b30a67ff9..baa721481 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -764,7 +764,7 @@ size_t ReadFileToString(bool text_file, const char* filename, std::string& str) IOFile file(filename, text_file ? "r" : "rb"); if (!file.IsOpen()) - return false; + return 0; str.resize(static_cast<u32>(file.GetSize())); return file.ReadArray(&str[0], str.size()); |