Fix decrypt_self usage

This commit is contained in:
Nekotekina 2017-09-01 02:10:57 +03:00
parent 174f11bdbd
commit 5b00aaf561
3 changed files with 5 additions and 6 deletions

View file

@ -121,9 +121,7 @@ error_code prx_load_module(std::string path, u64 flags, vm::ptr<sys_prx_load_mod
return not_an_error(idm::last_id());
}
const auto loadedkeys = fxm::get_always<LoadedNpdrmKeys_t>();
const ppu_prx_object obj = decrypt_self(fs::file(vfs::get(path)), loadedkeys->devKlic.data());
const ppu_prx_object obj = decrypt_self(fs::file(vfs::get(path)), fxm::get_always<LoadedNpdrmKeys_t>()->devKlic.data());
if (obj != elf_error::ok)
{