mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-18 02:11:28 +00:00
f1b420eb3b
SELF decrypter improved:
The files 'scetool.exe' and 'zlib1.dll' are no longer needed. Everything
needed is now included in the rpsc3 project. So the only thing you need
in order to load SELF files are the keys. More information about this
matter in my last commit: c1565e55
Warning for devs! There is a lot of spaghetti code in /scetool/. I
fucked up things a bit while trying to include scetool in rpcs3. There
is a lot of unused code there and I need to make sure that everything is
working properly. In any case, the code seems to work stable so
end-users shouldn't be worried about this warning. ;-)
'About...' dialog added:
Well, I have nothing more to say here. I wish you all a nice day!
43 lines
871 B
C
43 lines
871 B
C
/*
|
|
* Copyright (c) 2011-2013 by naehrwert
|
|
* This file is released under the GPLv2.
|
|
*/
|
|
|
|
#ifndef _NP_H_
|
|
#define _NP_H_
|
|
|
|
#include "types.h"
|
|
#include "sce.h"
|
|
|
|
/*! NPDRM config. */
|
|
typedef struct _npdrm_config
|
|
{
|
|
/*! License type. */
|
|
scetool::u32 license_type;
|
|
/*! Application type. */
|
|
scetool::u32 app_type;
|
|
/*! klicensee. */
|
|
scetool::u8 *klicensee;
|
|
/*! Content ID. */
|
|
scetool::u8 content_id[0x30];
|
|
/*! Real file name. */
|
|
scetool::s8 *real_fname;
|
|
} npdrm_config_t;
|
|
|
|
/*! Set klicensee. */
|
|
void np_set_klicensee(scetool::u8 *klicensee);
|
|
|
|
/*! Remove NPDRM layer. */
|
|
BOOL np_decrypt_npdrm(sce_buffer_ctxt_t *ctxt);
|
|
|
|
/*! Add NPDRM layer. */
|
|
BOOL np_encrypt_npdrm(sce_buffer_ctxt_t *ctxt);
|
|
|
|
/*! Create NPDRM control info. */
|
|
BOOL np_create_ci(npdrm_config_t *npconf, ci_data_npdrm_t *cinp);
|
|
|
|
/*! Add NP signature to file. */
|
|
BOOL np_sign_file(scetool::s8 *fname);
|
|
|
|
#endif
|