Some minor reordering, reduce the calls to Identify_File

This commit is contained in:
Henrik Rydgård committed 2025-03-26 09:24:14 +01:00
1 parent 0df7a850a1
commit e2e99caeee
4 files changed
+23 -20

No files matched your search

+1 -2
View File
@@ -249,9 +249,8 @@ Path ResolvePBPFile(const Path &filename) {
}
}
bool LoadFile(FileLoader **fileLoaderPtr, std::string *error_string) {
bool LoadFile(FileLoader **fileLoaderPtr, IdentifiedFileType type, std::string *error_string) {
FileLoader *&fileLoader = *fileLoaderPtr;
IdentifiedFileType type = Identify_File(fileLoader, error_string);
switch (type) {
case IdentifiedFileType::PSP_PBP_DIRECTORY:
{