RPCS3 arguments, TTY to file & sceNpTrophy stuff

This commit is contained in:
Alexandro Sánchez Bach 2014-02-27 04:21:08 +01:00
parent 6a15351363
commit cd10dca71f
7 changed files with 54 additions and 3 deletions

View file

@ -188,9 +188,20 @@ int sceNpTrophySetSoundLevel()
return CELL_OK;
}
int sceNpTrophyGetRequiredDiskSpace()
int sceNpTrophyGetRequiredDiskSpace(u32 context, u32 handle, mem64_t reqspace, u64 options)
{
UNIMPLEMENTED_FUNC(sceNpTrophy);
sceNpTrophy.Warning("sceNpTrophyGetRequiredDiskSpace(context=%d, handle=%d, reqspace_addr=0x%x, options=0x%llx)",
context, handle, reqspace.GetAddr(), options);
if (!s_npTrophyInstance.m_bInitialized)
return SCE_NP_TROPHY_ERROR_NOT_INITIALIZED;
if (!reqspace.IsGood())
return SCE_NP_TROPHY_ERROR_INVALID_ARGUMENT;
// TODO: There are other possible errors
sceNpTrophyInternalContext& ctxt = s_npTrophyInstance.contexts[context];
reqspace = ctxt.trp_stream->GetSize(); // TODO: This is not accurate. It's just an approximation of the real value
return CELL_OK;
}