summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Hotz <geohot@gmail.com>2011-01-09 13:54:38 -0500
committerGeorge Hotz <geohot@gmail.com>2011-01-09 13:54:38 -0500
commita5ffb69662a298b2a18703cb3acf486147d79526 (patch)
tree65fea4f9c379e36834f6ff0f61effa96c4e528ed
parentd8887a0e443bff244874393e2d58821bf356e3bb (diff)
downloadps3publictools-a5ffb69662a298b2a18703cb3acf486147d79526.tar.xz
removed testing stuff
-rwxr-xr-xmake_self_npdrm/make_self.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/make_self_npdrm/make_self.c b/make_self_npdrm/make_self.c
index 1023743..6185739 100755
--- a/make_self_npdrm/make_self.c
+++ b/make_self_npdrm/make_self.c
@@ -284,7 +284,6 @@ void enumerate_segments() {
}
}
-//u8 npdrm_hash_unknown[] = {0xEC,0x7A,0xF2,0x1D,0xD9,0xE6,0x94,0xCA,0x8E,0x4C,0x8C,0x62,0x01,0x8F,0x66,0xF6};
void init_Self_NPDRM(Self_NPDRM* npdrm, char* titleid, char* filename) {
set_u32(&npdrm->block_type, 3);
@@ -294,7 +293,6 @@ void init_Self_NPDRM(Self_NPDRM* npdrm, char* titleid, char* filename) {
set_u32(&npdrm->unknown4, 3);
set_u32(&npdrm->unknown5, 1);
strncpy(npdrm->titleid, titleid, 0x30);
- //memcpy(npdrm->hash_unknown, npdrm_hash_unknown, sizeof(npdrm_hash_unknown));
char *true_filename = strrchr(filename,'/');
if(true_filename == NULL) {
@@ -388,7 +386,7 @@ int main(int argc, char* argv[]) {
#ifdef NPDRM
if(argc < 3) {
- printf("usage: %s input.elf output.self <titleid>\n", argv[0]);
+ printf("usage: %s input.elf output.self <content_id>\n", argv[0]);
printf(" warning NPDRM cares about the output file name, do not rename\n");
return -1;
}
@@ -572,11 +570,6 @@ int main(int argc, char* argv[]) {
//mpz_export(all_signed.S, &countp, 1, 0x14, 1, 0, cs);
mpz_export(&output_self_data[get_u64(&output_self_data[get_u32(output_self_data+0xC)+0x60])+0x16], &countp, 1, 0x14, 1, 0, cs);
-// write the output self test
- FILE *test_self_file = fopen("test_out", "wb");
- fwrite(output_self_data, 1, running_size, test_self_file);
- fclose(test_self_file);
-
// encrypt metadata
int metadata_offset = get_u32(&(output_self_header.s_esize)) + sizeof(Self_Shdr);