Merge pull request #13835 from hrydgard/report-small-memstick-fix

If we are reporting a small memstick size, but data is bigger, lie.
This commit is contained in:
Henrik Rydgård 2021-01-01 10:16:56 +01:00 committed by GitHub
commit 3c59e2351c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,6 +88,10 @@ u64 MemoryStick_FreeSpace() {
u64 simulatedFreeSpace = 0;
if (usedSpace < memStickSize) {
simulatedFreeSpace = memStickSize - usedSpace;
} else if (flags.ReportSmallMemstick) {
// There's more stuff in the memstick than the size we report.
// This doesn't work, so we'll just have to lie. Not sure what the best way is.
simulatedFreeSpace = smallMemstickSize / 2; // just pick a value.
}
if (flags.MemstickFixedFree) {
// Assassin's Creed: Bloodlines fails to save if free space changes incorrectly during game.