mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 11:15:20 +02:00
GameInfoCache: report the firmware updater bundled on a game disc
Adds GameInfoFlags::BUNDLED_UPDATE_INFO, holding the version, title, size and timestamp of the updater in PSP_GAME/SYSDIR/UPDATE. It comes from the PARAM.SFO and the directory entry next to the archive, so it's a couple of small reads on the ISOFileSystem the worker already has open - no decryption, and DATA.BIN itself is only sniffed for its magic. Only computed for ISOs; everything else is marked complete with an empty struct. ISOFileSystem now parses the date out of the ISO9660 directory record, stored as Unix UTC seconds and reported as the PSP's atime/ctime/mtime. Those used to always read back as zero, so games calling sceIoGetstat on a UMD file saw 1900 where hardware gives the mastering date. Shown on GameScreen as e.g. "Firmware update on disc: 6.60 (2011-10-05), 25.6 MB". Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0149QcTVgZEXKXbgHyvXF4ZY
This commit is contained in:
co-authored by
Claude Opus 5
parent
c09e6bddaa
commit
396f9e802d
@@ -72,6 +72,10 @@ private:
|
||||
u32 startingPosition = 0;
|
||||
s64 size = 0;
|
||||
bool isDirectory = false;
|
||||
// The date/time from the ISO9660 directory record, as Unix UTC seconds (0 if there
|
||||
// wasn't a usable one). ISO9660 only has the one timestamp per file, so it gets
|
||||
// reported as all three of atime/ctime/mtime.
|
||||
s64 recordTime = 0;
|
||||
|
||||
u32 startsector = 0;
|
||||
u32 dirsize = 0;
|
||||
|
||||
Reference in New Issue
Block a user