mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
sys_prx/overlay: Add some debugging steps
This commit is contained in:
parent
e3d4c067df
commit
4aee44b1c0
2 changed files with 19 additions and 3 deletions
|
@ -36,7 +36,15 @@ static error_code overlay_load_module(vm::ptr<u32> ovlmid, const std::string& vp
|
||||||
|
|
||||||
u128 klic = g_fxo->get<loaded_npdrm_keys>().last_key();
|
u128 klic = g_fxo->get<loaded_npdrm_keys>().last_key();
|
||||||
|
|
||||||
ppu_exec_object obj = decrypt_self(std::move(src), reinterpret_cast<u8*>(&klic), nullptr, true);
|
src = decrypt_self(std::move(src), reinterpret_cast<u8*>(&klic), nullptr, true);
|
||||||
|
|
||||||
|
if (!src)
|
||||||
|
{
|
||||||
|
return {CELL_ENOEXEC, +"Failed to decrypt file"};
|
||||||
|
}
|
||||||
|
|
||||||
|
ppu_exec_object obj = std::move(src);
|
||||||
|
src.close();
|
||||||
|
|
||||||
if (obj != elf_error::ok)
|
if (obj != elf_error::ok)
|
||||||
{
|
{
|
||||||
|
|
|
@ -263,11 +263,19 @@ static error_code prx_load_module(const std::string& vpath, u64 flags, vm::ptr<s
|
||||||
|
|
||||||
u128 klic = g_fxo->get<loaded_npdrm_keys>().last_key();
|
u128 klic = g_fxo->get<loaded_npdrm_keys>().last_key();
|
||||||
|
|
||||||
ppu_prx_object obj = decrypt_self(std::move(src), reinterpret_cast<u8*>(&klic), nullptr, true);
|
src = decrypt_self(std::move(src), reinterpret_cast<u8*>(&klic), nullptr, true);
|
||||||
|
|
||||||
|
if (!src)
|
||||||
|
{
|
||||||
|
return {CELL_PRX_ERROR_UNSUPPORTED_PRX_TYPE, +"Failed to decrypt file"};
|
||||||
|
}
|
||||||
|
|
||||||
|
ppu_prx_object obj = std::move(src);
|
||||||
|
src.close();
|
||||||
|
|
||||||
if (obj != elf_error::ok)
|
if (obj != elf_error::ok)
|
||||||
{
|
{
|
||||||
return CELL_PRX_ERROR_UNSUPPORTED_PRX_TYPE;
|
return {CELL_PRX_ERROR_UNSUPPORTED_PRX_TYPE, obj.get_error()};
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto prx = ppu_load_prx(obj, false, path, file_offset);
|
const auto prx = ppu_load_prx(obj, false, path, file_offset);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue