From 450e2c9a0e6cb9587440c18bb69f668c62857b62 Mon Sep 17 00:00:00 2001 From: eladash Date: Sat, 20 Apr 2019 21:05:30 +0300 Subject: [PATCH] cellSaveData: Add missing SDK version check for setParam->reserved2 check --- rpcs3/Emu/Cell/Modules/cellSaveData.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp index f3466d16a8..ca9982c0e5 100644 --- a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp @@ -803,12 +803,15 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v return CELL_SAVEDATA_ERROR_PARAM; } - for (u8 resv : statSet->setParam->reserved2) + if (g_ps3_sdk_version > 0x36FFFF) { - if (resv) + for (u8 resv : statSet->setParam->reserved2) { - // ****** sysutil savedata parameter error : 58 ****** - return CELL_SAVEDATA_ERROR_PARAM; + if (resv) + { + // ****** sysutil savedata parameter error : 58 ****** + return CELL_SAVEDATA_ERROR_PARAM; + } } }