DLC encryption

This commit is contained in:
vakko 2013-02-24 19:27:37 +02:00
parent 8ea497d59a
commit 02371b2949
5 changed files with 77 additions and 0 deletions

View File

@ -769,6 +769,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/HLE/sceUtility.h
Core/HLE/sceVaudio.cpp
Core/HLE/sceVaudio.h
Core/HLE/scePspNpDrm_user.cpp
Core/HLE/scePspNpDrm_user.h
Core/HW/MediaEngine.cpp
Core/HW/MediaEngine.h
Core/HW/MemoryStick.cpp

View File

@ -54,6 +54,7 @@
#include "sceVaudio.h"
#include "sceUsb.h"
#include "sceChnnlsv.h"
#include "scePspNpDrm_user.h"
#define N(s) s

View File

@ -60,6 +60,7 @@
#include "scePsmf.h"
#include "sceImpose.h"
#include "sceUsb.h"
#include "scePspNpDrm_user.h"
#include "../Util/PPGeDraw.h"

View File

@ -0,0 +1,68 @@
#include "scePspNpDrm_user.h"
#include "HLE.h"
int sceNpDrmSetLicenseeKey()
{
ERROR_LOG(HLE, "UNIMPL sceNpDrmSetLicenseeKey");
return 0;
}
int sceNpDrmClearLicenseeKey()
{
ERROR_LOG(HLE, "UNIMPL sceNpDrmClearLicenseeKey");
return 0;
}
int sceNpDrmRenameCheck()
{
ERROR_LOG(HLE, "UNIMPL sceNpDrmRenameCheck");
return 0;
}
int sceNpDrmEdataSetupKey(u32 edataFd)
{
ERROR_LOG(HLE, "UNIMPL sceNpDrmEdataSetupKey %x", edataFd);
return 0;
}
int sceNpDrmEdataGetDataSize(u32 edataFd)
{
ERROR_LOG(HLE, "UNIMPL sceNpDrmEdataGetDataSize %x", edataFd);
return 0;
}
int sceNpDrmOpen()
{
ERROR_LOG(HLE, "UNIMPL sceNpDrmOpen");
return 0;
}
int sceKernelLoadModuleNpDrm()
{
ERROR_LOG(HLE, "UNIMPL sceKernelLoadModuleNpDrm");
return 0;
}
int sceKernelLoadExecNpDrm()
{
ERROR_LOG(HLE, "UNIMPL sceKernelLoadExecNpDrm");
return 0;
}
const HLEFunction sceNpDrm[] =
{
{0xA1336091, 0, "sceNpDrmSetLicenseeKey"},
{0x9B745542, 0, "sceNpDrmClearLicenseeKey"},
{0x275987D1, 0, "sceNpDrmRenameCheck"},
{0x08d98894, WrapI_U<sceNpDrmEdataSetupKey>, "sceNpDrmEdataSetupKey"},
{0x219EF5CC, WrapI_U<sceNpDrmEdataGetDataSize>, "sceNpDrmEdataGetDataSize"},
{0x2BAA4294, 0, "sceNpDrmOpen"},
{0xC618D0B1, 0, "sceKernelLoadModuleNpDrm"},
{0xAA5FC85B, 0, "sceKernelLoadExecNpDrm"},
};
void Register_sceNpDrm()
{
RegisterModule("sceNpDrm", ARRAY_SIZE(sceNpDrm), sceNpDrm);
}

View File

@ -0,0 +1,5 @@
#pragma once
class PointerWrap;
void Register_sceNpDrm();