Trophy: return size for GetRequiredDiskSpace again

This commit is contained in:
Jake 2017-06-18 21:00:42 -05:00 committed by Ivan
parent f77e9f8bc1
commit 03268b0838
1 changed files with 2 additions and 2 deletions

View File

@ -347,8 +347,8 @@ error_code sceNpTrophyGetRequiredDiskSpace(u32 context, u32 handle, vm::ptr<u64>
// TODO: This is not accurate. It's just an approximation of the real value
// The real value can be obtained in TRP.cpp:
// m_headers.trp_file_size - sizeof(m_headers) - (m_headers.trp_files_count * m_headers.trp_element_size);
//*reqspace = ctxt->trp_stream.size();
*reqspace = 0; // Since we currently just say the trophys are installed, there's no required disk space
// TODO: eventually this should be set to 0 when trophys are detected as already installed, setting to 0 now causes some games to not call registerContext, which leads to trophys never getting installed
*reqspace = ctxt->trp_stream.size();
return CELL_OK;
}