summaryrefslogtreecommitdiff
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-24 02:20:00 -0400
committerGravatar Lioncash2018-08-24 02:20:02 -0400
commitc74b7ee204853413813d06e4ae008639b4f12118 (patch)
tree800fb32b58060e923e8af897d4e52ce68f0a35b1 /src/common/file_util.cpp
parentPort #4013 from Citra: "Init logging sooner so we dont miss some logs on star... (diff)
downloadyuzu-c74b7ee204853413813d06e4ae008639b4f12118.tar.gz
yuzu-c74b7ee204853413813d06e4ae008639b4f12118.tar.xz
yuzu-c74b7ee204853413813d06e4ae008639b4f12118.zip
file_util: Correct return value in early exit of ReadFileToString()
While still essentially being zero, we should be returning a numeric value here, not a boolean typed value.
Diffstat (limited to '')
-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)
764 IOFile file(filename, text_file ? "r" : "rb"); 764 IOFile file(filename, text_file ? "r" : "rb");
765 765
766 if (!file.IsOpen()) 766 if (!file.IsOpen())
767 return false; 767 return 0;
768 768
769 str.resize(static_cast<u32>(file.GetSize())); 769 str.resize(static_cast<u32>(file.GetSize()));
770 return file.ReadArray(&str[0], str.size()); 770 return file.ReadArray(&str[0], str.size());