mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
Some minor reordering, reduce the calls to Identify_File
This commit is contained in:
1 parent
0df7a850a1
commit
e2e99caeee
4 files changed
+23
-20
No files matched your search
+1
-2
@@ -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:
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user