cellSaveData: fix truncation size (regression)
This commit is contained in:
@@ -815,7 +815,7 @@ static NEVER_INLINE s32 savedata_op(ppu_thread& ppu, u32 operation, u32 version,
|
|||||||
// Write to memory file and truncate
|
// Write to memory file and truncate
|
||||||
const u64 sr = file.seek(fileSet->fileOffset);
|
const u64 sr = file.seek(fileSet->fileOffset);
|
||||||
const u64 wr = file.write(fileSet->fileBuf.get_ptr(), access_size);
|
const u64 wr = file.write(fileSet->fileBuf.get_ptr(), access_size);
|
||||||
file.trunc(wr);
|
file.trunc(sr + wr);
|
||||||
fileGet->excSize = ::narrow<u32>(wr);
|
fileGet->excSize = ::narrow<u32>(wr);
|
||||||
all_times.erase(file_path);
|
all_times.erase(file_path);
|
||||||
has_modified = true;
|
has_modified = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user