Add an interface to load files with.

This allows loading from other than raw files.
This commit is contained in:
Unknown W. Brackets committed 2014-11-23 13:25:32 -08:00
1 parent a0461f1dcd
commit 102b7b03fa
6 files changed
+190 -57

No files matched your search

+3 -1
View File
@@ -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);