Fix sceNpTrophyGet(Trophy/Game)Icon

This commit is contained in:
Eladash 2021-03-12 08:33:38 +02:00 committed by Ivan
parent 1213708b72
commit 1d7fbd6a9a
1 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@
#include "Emu/Cell/lv2/sys_event.h" #include "Emu/Cell/lv2/sys_event.h"
#include "Emu/Cell/lv2/sys_process.h" #include "Emu/Cell/lv2/sys_process.h"
#include "Emu/Cell/lv2/sys_fs.h"
#include <cmath> #include <cmath>
#include <shared_mutex> #include <shared_mutex>
@ -1192,7 +1193,7 @@ error_code sceNpTrophyGetGameIcon(u32 context, u32 handle, vm::ptr<void> buffer,
if (buffer && *size >= icon_size) if (buffer && *size >= icon_size)
{ {
icon_file.read(buffer.get_ptr(), icon_size); lv2_file::op_read(icon_file, buffer, icon_size);
} }
*size = icon_size; *size = icon_size;
@ -1259,7 +1260,7 @@ error_code sceNpTrophyGetTrophyIcon(u32 context, u32 handle, s32 trophyId, vm::p
if (buffer && *size >= icon_size) if (buffer && *size >= icon_size)
{ {
icon_file.read(buffer.get_ptr(), icon_size); lv2_file::op_read(icon_file, buffer, icon_size);
} }
*size = icon_size; *size = icon_size;