Add missing return statement from PBPReader::GetSubFileAsString. Compiler should have rejected this..

This commit is contained in:
Henrik Rydgård 2024-11-04 01:11:42 +01:00
parent cbd19c967f
commit cebb2ea96e
2 changed files with 4 additions and 0 deletions

2
.gitignore vendored
View File

@ -57,6 +57,7 @@ include/glslang/build_info.h
# For ppsspp.ini, etc.
ppsspp.ini
imgui.ini
PPSSPPControls.dat
# Qt Linguist files
@ -101,6 +102,7 @@ local.properties
r.sh
Windows/compileData*
Windows/*.ipch
Windows/imgui.ini
# For vim
*.swp

View File

@ -95,8 +95,10 @@ bool PBPReader::GetSubFileAsString(PBPSubFile file, std::string *out) const {
ERROR_LOG(Log::Loader, "PBP file read truncated: %d -> %d", (int)expected, (int)bytes);
if (bytes < expected) {
out->resize(bytes);
// should we still return true here?
}
}
return true;
}
PBPReader::~PBPReader() {