Editing ISO.BIN.EDAT
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 343: | Line 343: | ||
<!--// CELL_FS_ CELL_FS //--> | <!--// CELL_FS_ CELL_FS //--> | ||
<pre> | <pre> | ||
#define PSP_EMULATOR_KLIC | #define PSP_EMULATOR_KLIC {0x2A,0x6A,0xFB,0xCF,0x43,0xD1,0x57,0x9F,0x7D,0x73,0x87,0x41,0xA1,0x3B,0xD4,0x2E} | ||
#define BUF_SIZE (16*1024) | #define BUF_SIZE (16*1024) | ||
#define NP_POOL_SIZE (128*1024) | #define NP_POOL_SIZE (128*1024) | ||
Line 349: | Line 349: | ||
#include <np.h> | #include <np.h> | ||
#include <np/drm.h> | #include <np/drm.h> | ||
uint8_t np_pool[NP_POOL_SIZE]; | uint8_t np_pool[NP_POOL_SIZE]; | ||
uint8_t read_buf[BUF_SIZE]; | uint8_t read_buf[BUF_SIZE]; | ||
Line 372: | Line 367: | ||
ret = sceNpDrmIsAvailable2(&k_licensee, edata_file); | ret = sceNpDrmIsAvailable2(&k_licensee, edata_file); | ||
if (ret != CELL_OK) { | if (ret != CELL_OK) { | ||
printf("EDAT not activated\n"); | printf("EDAT not activated\n", ret); | ||
return ret; | return ret; | ||
} | } | ||
Line 379: | Line 374: | ||
ret = cellFsOpen(edata_file, CELL_FS_O_RDONLY, &fd1, &arg, sizeof(arg)); | ret = cellFsOpen(edata_file, CELL_FS_O_RDONLY, &fd1, &arg, sizeof(arg)); | ||
if (ret != CELL_FS_OK) { | if (ret != CELL_FS_OK) { | ||
printf("Error opening for reading\n"); | printf("Error opening for reading\n", ret); | ||
return ret; | return ret; | ||
} | } | ||
Line 385: | Line 380: | ||
ret = cellFsOpen(raw_file, CELL_FS_O_RDWR|CELL_FS_O_CREAT, &fd2, NULL, 0); | ret = cellFsOpen(raw_file, CELL_FS_O_RDWR|CELL_FS_O_CREAT, &fd2, NULL, 0); | ||
if (ret != CELL_FS_OK) { | if (ret != CELL_FS_OK) { | ||
printf("Error opening file\n"); | printf("Error opening file\n", ret); | ||
cellFsClose(fd2); | cellFsClose(fd2); | ||
return ret; | return ret; | ||
Line 422: | Line 417: | ||
ret = cellSysmoduleUnloadModule(CELL_SYSMODULE_SYSUTIL_NP); | ret = cellSysmoduleUnloadModule(CELL_SYSMODULE_SYSUTIL_NP); | ||
ret = cellSysmoduleUnloadModule(CELL_SYSMODULE_FS); | ret = cellSysmoduleUnloadModule(CELL_SYSMODULE_FS); | ||
</pre> | </pre> | ||