rm-NoobInCoding / UnPSARC

Archive Unpacker/Packer For PlayStation Archive (PSARC) Files
https://discord.gg/zjx3dgmx
MIT License
39 stars 5 forks source link

"Files found: 0" #22

Open modusc896d352 opened 1 day ago

modusc896d352 commented 1 day ago

can be reproduced just by unpacking any psarc file to a folder using just UnPSARC through the command-line terminal "Files found: 0" happens before UnPSARC exports all files from a psarc to a specified folder like normal.

it happens on non-empty psarc files; psarc that have at least one file stored in them beyond just the file name listing. more often than not said files within a psarc go by the literal thousands (22292 entries within a psarc, for one).

here are the results of some of the unpacked psarc from Kai no Kiseki PS4 ver:

Unpacking done! | 17328 of 17328 Files Exported (asset_group0.psarc)
Unpacking done! | 22292 of 22292 Files Exported (asset_group1.psarc)
Unpacking done! | 20566 of 20566 Files Exported (asset_group2.psarc)
Unpacking done! | 8020 of 8020 Files Exported (asset_groupx.psarc)
Unpacking done! | 5541 of 5541 Files Exported (asset_system.psarc)
Unpacking done! | 454 of 454 Files Exported (bgm.psarc)
Unpacking done! | 160 of 160 Files Exported (layout.psarc)
Unpacking done! | 14 of 14 Files Exported (pac.psarc)
Unpacking done! | 19 of 19 Files Exported (pac2.psarc)
Unpacking done! | 2337 of 2337 Files Exported (scene.psarc)
Unpacking done! | 3228 of 3228 Files Exported (se.psarc)
Unpacking done! | 6710 of 6710 Files Exported (vfx.psarc)
Unpacking done! | 21856 of 21856 Files Exported (voice.psarc)
Unpacking done! | 3111 of 3111 Files Exported (patch.psarc)
Unpacking done! | 2 of 2 Files Exported (patch_pac.psarc)

also, and this is just an observation: although UnPSARC does report correct number of psarc entries (after unpacking), in truth all of the files but one are unpacked from the target psarc. such file is the file name listing which is already used elsewhere in the code. just something worth noting imo.