Repository navigation
PSGame-Viewer 0.0.4
PSGame-Viewer 0.0.4 is a correctness and stability release. The headline fix: the Trophies tab never worked on a real retail pack — and the Library search that shipped dead in 0.0.3 is alive again.
Bug Fixes
- The Trophies tab was empty on every real pack. PS3 folders, PS3 ISOs, PS3 PKGs and PS4 debug PKGs all showed nothing: the TRP parser implemented a container layout that matched no real file (it read the entry count from the version field and the entry records at the wrong offsets), so retail packs were silently rejected. It now parses the real retail TRP container layout, cross-checked against four independent implementations that work on retail files.
- The Library search box was dead — every keystroke raised a TypeError and the list never filtered. Search is now a debounced (200 ms) property write.
- Closing the app could hang — a queued trophy load could resurrect itself after abort was requested and block shutdown for a full pack read. The abort flag is now sticky, and stale loads are dropped before doing any I/O.
- Drop-open errors were invisible (the DropArea wiped the status message right after it was emitted); an online lookup no longer clobbers an outer in-flight reply; rapid re-clicks on Check for updates no longer stack requests.
Stability on crafted containers
- PFSC out-of-bounds read — the block count is now range-checked in 64 bits before the cast that used to wrap it, defeating the cap.
- PS3 PKG validation bypass — offset+size sums wrapped mod 2³²/2⁶⁴ and passed the bounds check with bogus offsets; widened to 64-bit, seek-overflow rejected.
- exFAT DoS — chain reads clamp to the remaining read cap and cluster offsets are computed in 64 bits.
- PS4/PS5 name offsets and SFO value-end math hardened against integer truncation; unchecked file seeks in the ISO readers now fail cleanly.
Performance
- Files tab: folder toggling uses incremental row updates — no more scroll jump or flicker on large containers.
- Image decode cache (bounded at 128, invalidated per generation): thumbnails no longer re-decode full-res PNGs on every scroll or model change.
- Entry-tree build is O(n) instead of O(n²); the rename-preview regex is compiled once; removing a library row no longer resets the whole model.
Other Changes
- Trophy fixtures were regenerated to match the real retail TRP layout — the old ones were generated to match the parser's fiction, which is why the unit tests could never catch the empty-Trophies bug.
- The Windows portable archive attached below is built automatically from this tag by CI. The Linux tarball is assembled from the same v0.0.4 sources with the same slim-portable layout introduced in 0.0.3 (Qt 6.8.2 runtime, only the modules the app loads).