mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 03:08:36 +12:00
sceNpTrophyRegisterContext: log tls error
This commit is contained in:
parent
4e426af114
commit
4c8630d29f
1 changed files with 3 additions and 2 deletions
|
@ -604,7 +604,7 @@ error_code sceNpTrophyRegisterContext(ppu_thread& ppu, u32 context, u32 handle,
|
||||||
|
|
||||||
if (!stream && Emu.GetCat() == "GD")
|
if (!stream && Emu.GetCat() == "GD")
|
||||||
{
|
{
|
||||||
sceNpTrophy.warning("sceNpTrophyRegisterContext failed to open trophy file from boot path: '%s'", trp_path);
|
sceNpTrophy.warning("sceNpTrophyRegisterContext failed to open trophy file from boot path: '%s' (%s)", trp_path, fs::g_tls_error);
|
||||||
trp_path = vfs::get("/dev_bdvd/PS3_GAME/TROPDIR/" + ctxt->trp_name + "/TROPHY.TRP");
|
trp_path = vfs::get("/dev_bdvd/PS3_GAME/TROPDIR/" + ctxt->trp_name + "/TROPHY.TRP");
|
||||||
stream.open(trp_path);
|
stream.open(trp_path);
|
||||||
}
|
}
|
||||||
|
@ -612,7 +612,8 @@ error_code sceNpTrophyRegisterContext(ppu_thread& ppu, u32 context, u32 handle,
|
||||||
// check if exists and opened
|
// check if exists and opened
|
||||||
if (!stream)
|
if (!stream)
|
||||||
{
|
{
|
||||||
return {SCE_NP_TROPHY_ERROR_CONF_DOES_NOT_EXIST, trp_path};
|
const std::string msg = fmt::format("Failed to open trophy file: '%s' (%s)", trp_path, fs::g_tls_error);
|
||||||
|
return {SCE_NP_TROPHY_ERROR_CONF_DOES_NOT_EXIST, msg};
|
||||||
}
|
}
|
||||||
|
|
||||||
TRPLoader trp(stream);
|
TRPLoader trp(stream);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue