Merge pull request #2691 from thedax/master

Fix PSN eboot crashes
This commit is contained in:
Henrik Rydgård 2013-07-08 00:46:12 -07:00
commit e21c5c6747

View file

@ -24,7 +24,7 @@ extern "C"
{
#include "zlib.h"
#include "ext/libkirk/amctrl.h"
#include "ext/libkirk/kirk_engine.h"
};
BlockDevice *constructBlockDevice(const char *filename) {
@ -222,6 +222,8 @@ NPDRMDemoBlockDevice::NPDRMDemoBlockDevice(FILE *file)
ERROR_LOG(LOADER, "Invalid NPUMDIMG header!");
}
kirk_init();
// getkey
sceDrmBBMacInit(&mkey, 3);
sceDrmBBMacUpdate(&mkey, np_header, 0xc0);