summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-28 00:18:31 +0200
committerGitHub <noreply@github.com>2018-08-28 00:18:31 +0200
commit2562fe4a16c823013336044844a995c185e2e06b (patch)
tree627cc10c185eee85f7a88ab1468cd4414f9fd947
parentMerge pull request #1175 from lioncash/ns (diff)
parentfile_util: Correct return value in early exit of ReadFileToString() (diff)
downloadyuzu-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.cpp2
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());