Skip to content

Commit

Permalink
keys.bin for pkg type 1 (done)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoti committed Jun 7, 2022
1 parent 6522c50 commit 73fd5a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg2zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,18 +923,16 @@ int main(int argc, char* argv[])
}

if (type == PKG_TYPE_PS3) {
char game[ZIP_MAX_FILENAME];
char game[10]; // ABCD12345
strncpy(game, &name[0], 9);
game[9] = '\0';
if (strstr(name, "DOCUMENT.DAT") != NULL) {
sprintf(path, "pspemu/PSP/GAME/%s/DOCUMENT.DAT", game);
} else if (strstr(name, "EBOOT.PBP") != NULL) {
sprintf(path, "pspemu/PSP/GAME/%s", game);
out_add_folder(path);
/*
sprintf(path, "pspemu/PSP/GAME/%s/KEYS.BIN", game);
unpack_keys_bin(path, item_key, iv, pkg, enc_offset, data_offset, data_size);
*/
sprintf(path, "pspemu/PSP/GAME/%s/EBOOT.PBP", game);
} else {
continue;
Expand Down

0 comments on commit 73fd5a3

Please sign in to comment.