mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
sys_prx/overlay: Add some debugging steps
This commit is contained in:
parent
e3d4c067df
commit
4aee44b1c0
@ -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();
|
||||
|
||||
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)
|
||||
{
|
||||
|
@ -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();
|
||||
|
||||
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)
|
||||
{
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user