From 9d0445fc6d6ee63c56c7f6cefdc7be687a4395ca Mon Sep 17 00:00:00 2001 From: Martins Mozeiko Date: Thu, 2 Nov 2017 02:32:02 -0700 Subject: [PATCH] fix typos & support extra content type for PSM --- pkg2zip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg2zip.c b/pkg2zip.c index a24348f..42b22a4 100644 --- a/pkg2zip.c +++ b/pkg2zip.c @@ -203,7 +203,7 @@ static void find_psp_sfo(const aes128_key* key, const aes128_key* ps3_key, const if (pkg_size < enc_offset + name_offset + name_size || pkg_size < enc_offset + data_offset + data_size) { - fatal("ERROR: pkg file is too short, possible corrupted\n"); + fatal("ERROR: pkg file is too short, possibly corrupted\n"); } const aes128_key* item_key = psp_type == 0x90 ? key : ps3_key; @@ -462,7 +462,7 @@ int main(int argc, char* argv[]) { type = PKG_TYPE_VITA_DLC; } - else if (content_type == 0x18) + else if (content_type == 0x18 || content_type == 0x1d) { type = PKG_TYPE_VITA_PSM; } @@ -702,7 +702,7 @@ int main(int argc, char* argv[]) if (pkg_size < enc_offset + name_offset + name_size || pkg_size < enc_offset + data_offset + data_size) { - fatal("ERROR: pkg file is too short, possible corrupted\n"); + fatal("ERROR: pkg file is too short, possibly corrupted\n"); } if (name_size >= ZIP_MAX_FILENAME)