Use a FileLoader for PBPs.

Improves consistency, caching, etc.
This commit is contained in:
Unknown W. Brackets committed 2015-12-24 12:21:40 -08:00
1 parent a53f0360f3
commit f3df6b307f
6 files changed
+45 -59

No files matched your search

+1 -3
View File
@@ -131,9 +131,7 @@ void InitMemoryForGamePBP(FileLoader *fileLoader) {
return;
}
// TODO: Change PBPReader to read FileLoader objects?
std::string filename = fileLoader->Path();
PBPReader pbp(filename.c_str());
PBPReader pbp(fileLoader);
if (pbp.IsValid() && !pbp.IsELF()) {
std::vector<u8> sfoData;
if (pbp.GetSubFile(PBP_PARAM_SFO, &sfoData)) {