Propagate errors from file identification upwards better.

This commit is contained in:
Henrik Rydgård committed 2021-08-07 11:54:45 +02:00
1 parent af3ad2ca03
commit 43ba908225
8 files changed
+58 -30

No files matched your search

+3 -1
View File
@@ -356,8 +356,10 @@ public:
return;
}
std::string errorString;
info_->working = true;
info_->fileType = Identify_File(info_->GetFileLoader().get());
info_->fileType = Identify_File(info_->GetFileLoader().get(), &errorString);
switch (info_->fileType) {
case IdentifiedFileType::PSP_PBP:
case IdentifiedFileType::PSP_PBP_DIRECTORY: