mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +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!
73 lines
1.5 KiB
C
73 lines
1.5 KiB
C
/*
|
|
* Copyright (c) 2011-2013 by naehrwert
|
|
* This file is released under the GPLv2.
|
|
*/
|
|
|
|
#ifndef _SELF_H_
|
|
#define _SELF_H_
|
|
|
|
#include "types.h"
|
|
#include "config.h"
|
|
#include "np.h"
|
|
|
|
/*! PS3 specific ELF constants. */
|
|
/*! LV2 OS ABI. */
|
|
#define ELFOSABI_CELL_LV2 0x66
|
|
/*! PRX ELF type. */
|
|
#define ET_PS3PRX 0xFFA4
|
|
/*! PS3 Params. */
|
|
#define PT_PS3_PARAMS 0x60000001
|
|
/*! PS3 PRX. */
|
|
#define PT_PS3_PRX 0x60000002
|
|
/*! PRX Relocations. */
|
|
#define PT_PS3_PRX_RELOC 0x700000A4
|
|
|
|
/*! SELF config. */
|
|
typedef struct _self_config
|
|
{
|
|
/*! Add section headers. */
|
|
BOOL add_shdrs;
|
|
/*! Compress data. */
|
|
BOOL compress_data;
|
|
/*! Skip sections. */
|
|
BOOL skip_sections;
|
|
|
|
/*! Key revision. */
|
|
scetool::u16 key_revision;
|
|
/*! Auth ID. */
|
|
scetool::u64 auth_id;
|
|
/*! Vendor ID. */
|
|
scetool::u32 vendor_id;
|
|
/*! SELF type. */
|
|
scetool::u32 self_type;
|
|
/*! Application version. */
|
|
scetool::u64 app_version;
|
|
/*! Firmware version. */
|
|
scetool::u64 fw_version;
|
|
|
|
/*! Control flags. */
|
|
scetool::u8 *ctrl_flags;
|
|
/*! Capability flags. */
|
|
scetool::u8 *cap_flags;
|
|
#ifdef CONFIG_CUSTOM_INDIV_SEED
|
|
/*! Individuals seed. */
|
|
scetool::u8 *indiv_seed;
|
|
/*! Individuals seed size. */
|
|
scetool::u32 indiv_seed_size;
|
|
#endif
|
|
|
|
/*! NPDRM config (used if not NULL). */
|
|
npdrm_config_t *npdrm_config;
|
|
} self_config_t;
|
|
|
|
/*! Print SELF info. */
|
|
BOOL self_print_info(FILE *fp, sce_buffer_ctxt_t *ctxt);
|
|
|
|
/*! Create ELF from SELF. */
|
|
BOOL self_write_to_elf(sce_buffer_ctxt_t *ctxt, const scetool::s8 *elf_out);
|
|
|
|
/*! Create SELF from ELF. */
|
|
BOOL self_build_self(sce_buffer_ctxt_t *ctxt, self_config_t *sconf);
|
|
|
|
#endif
|