From c559947a23ec8c55fab52d11fe91effa4d78fd63 Mon Sep 17 00:00:00 2001 From: Martins Mozeiko Date: Sat, 28 Oct 2017 12:23:16 -0700 Subject: [PATCH] better description what kind of psp is unpacking --- pkg2zip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg2zip.c b/pkg2zip.c index e382bd9..2feb578 100644 --- a/pkg2zip.c +++ b/pkg2zip.c @@ -397,8 +397,9 @@ int main(int argc, char* argv[]) char path[1024]; if (psp) { - snprintf(path, sizeof(path), "%s [%.9s] [%s].zip", title, pkg_header + 0x37, content_type == 6 ? "PSX" : content_type == 7 ? "PSP" : "PSPMini"); - printf("[*] unpacking PSP\n"); + const char* type_str = content_type == 6 ? "PSX" : content_type == 7 ? "PSP" : "PSPMini"; + snprintf(path, sizeof(path), "%s [%.9s] [%s].zip", title, pkg_header + 0x37, type_str); + printf("[*] unpacking %s\n", type_str); } else if (dlc) {