mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Log returned reqspace in sceNpTrophyGetRequiredDiskSpace
This commit is contained in:
parent
1d4595a349
commit
fa9330d0e0
@ -644,18 +644,29 @@ error_code sceNpTrophyGetRequiredDiskSpace(u32 context, u32 handle, vm::ptr<u64>
|
||||
return error;
|
||||
}
|
||||
|
||||
u64 space = 0;
|
||||
|
||||
if (!fs::is_dir(vfs::get("/dev_hdd0/home/" + Emu.GetUsr() + "/trophy/" + ctxt->trp_name)))
|
||||
{
|
||||
TRPLoader trp(ctxt->trp_stream);
|
||||
|
||||
if (trp.LoadHeader())
|
||||
{
|
||||
*reqspace = trp.GetRequiredSpace();
|
||||
return CELL_OK;
|
||||
space = trp.GetRequiredSpace();
|
||||
}
|
||||
else
|
||||
{
|
||||
sceNpTrophy.error("sceNpTrophyGetRequiredDiskSpace(): Failed to load trophy header! (trp_name=%s)", ctxt->trp_name);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sceNpTrophy.warning("sceNpTrophyGetRequiredDiskSpace(): Trophy config is already installed (trp_name=%s)", ctxt->trp_name);
|
||||
}
|
||||
|
||||
sceNpTrophy.warning("sceNpTrophyGetRequiredDiskSpace(): reqspace is 0x%llx", space);
|
||||
|
||||
*reqspace = 0;
|
||||
*reqspace = space;
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user