better description what kind of psp is unpacking

This commit is contained in:
Martins Mozeiko
2017-10-28 12:23:16 -07:00
parent 21cfc3b446
commit c559947a23
+3 -2
View File
@@ -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)
{