mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
Log returned reqspace in sceNpTrophyGetRequiredDiskSpace
This commit is contained in:
parent
1d4595a349
commit
fa9330d0e0
1 changed files with 14 additions and 3 deletions
|
@ -644,18 +644,29 @@ error_code sceNpTrophyGetRequiredDiskSpace(u32 context, u32 handle, vm::ptr<u64>
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u64 space = 0;
|
||||||
|
|
||||||
if (!fs::is_dir(vfs::get("/dev_hdd0/home/" + Emu.GetUsr() + "/trophy/" + ctxt->trp_name)))
|
if (!fs::is_dir(vfs::get("/dev_hdd0/home/" + Emu.GetUsr() + "/trophy/" + ctxt->trp_name)))
|
||||||
{
|
{
|
||||||
TRPLoader trp(ctxt->trp_stream);
|
TRPLoader trp(ctxt->trp_stream);
|
||||||
|
|
||||||
if (trp.LoadHeader())
|
if (trp.LoadHeader())
|
||||||
{
|
{
|
||||||
*reqspace = trp.GetRequiredSpace();
|
space = trp.GetRequiredSpace();
|
||||||
return CELL_OK;
|
|
||||||
}
|
}
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
*reqspace = 0;
|
sceNpTrophy.warning("sceNpTrophyGetRequiredDiskSpace(): reqspace is 0x%llx", space);
|
||||||
|
|
||||||
|
*reqspace = space;
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue