mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Add an interface to load files with.
This allows loading from other than raw files.
This commit is contained in:
1 parent
a0461f1dcd
commit
102b7b03fa
6 files changed
+190
-57
No files matched your search
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <algorithm>
|
||||
|
||||
#include "base/logging.h"
|
||||
@@ -246,8 +247,9 @@ public:
|
||||
return;
|
||||
|
||||
std::string filename = gamePath_;
|
||||
std::unique_ptr<FileLoader> fileLoader(new LocalFileLoader(filename));
|
||||
info_->path = gamePath_;
|
||||
info_->fileType = Identify_File(filename);
|
||||
info_->fileType = Identify_File(fileLoader.get());
|
||||
// Fallback title
|
||||
info_->title = getFilename(info_->path);
|
||||
|
||||
|
||||
Reference in new issue
Block a user