From c5ca1991636be922e64d65ec63d8207e33961c61 Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Fri, 19 Dec 2014 16:02:11 +0200 Subject: [PATCH] Implement CELL_SAVEDATA_FILEOP_WRITE_NOTRUNC --- rpcs3/Emu/SysCalls/Modules/cellSaveData.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/SysCalls/Modules/cellSaveData.cpp b/rpcs3/Emu/SysCalls/Modules/cellSaveData.cpp index 79cfb5e18a..13f3b56690 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellSaveData.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellSaveData.cpp @@ -279,7 +279,10 @@ s32 modifySaveDataFiles(vm::ptr funcFile, vm::ptrWarning("modifySaveDataFiles: File operation CELL_SAVEDATA_FILEOP_WRITE_NOTRUNC not yet implemented"); + // Does it really write without trunctation? + Emu.GetVFS().CreateFile(filepath); + file = Emu.GetVFS().OpenFile(filepath, vfsWrite); + fileGet->excSize = (u32)file->Write(buf, (u32)std::min(fileSet->fileSize, fileSet->fileBufSize)); // TODO: This may fail for big files because of the dest pointer. break; default: