Add stub framework for .pbp demos (nowhere near working). Fix an OSK crash.

This commit is contained in:
Henrik Rydgard committed 2013-04-27 23:16:51 +02:00
1 parent b603214777
commit b9f45e4530
5 files changed
+95 -24

No files matched your search

+18
View File
@@ -199,3 +199,21 @@ bool CISOFileBlockDevice::ReadBlock(int blockNumber, u8 *outPtr)
}
return true;
}
NPDRMDemoBlockDevice::NPDRMDemoBlockDevice(std::string _filename)
: filename_(_filename), pbpReader_(_filename.c_str()) {
std::string paramSfo;
pbpReader_.GetSubFileAsString(PBP_PARAM_SFO, &paramSfo);
}
NPDRMDemoBlockDevice::~NPDRMDemoBlockDevice() {
}
bool NPDRMDemoBlockDevice::ReadBlock(int blockNumber, u8 *outPtr) {
// TODO: Fill in decryption code here. Use pbpReader to read the file - might need to
// extend its functionality to do it efficiently.
return false;
}