mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
SaveIntoCache() discarded backend_->ReadAt()'s return value entirely and unconditionally marked the requested block(s) as cached. A short or failed read from the backend (e.g. a Remote ISO connection dropping mid-file, now that LocalFileLoader/RetryingFileLoader correctly report failures as 0 rather than a huge count) would still get stored as a "valid" cached block, permanently serving its uninitialized tail as if it were real file data on every later read, with no retry. Only insert a block once we've confirmed the backend actually delivered the full BLOCK_SIZE for it.