Remove kernel dependency on old xex header

This commit is contained in:
Dr. Chat 2015-06-28 23:57:00 -05:00
parent d7a5c74bf3
commit e44ac54eed
1 changed files with 1 additions and 2 deletions

View File

@ -141,9 +141,8 @@ SHIM_CALL XexCheckExecutablePrivilege_shim(PPCContext* ppc_context,
SHIM_SET_RETURN_32(0);
return;
}
xe_xex2_ref xex = module->xex();
const xe_xex2_header_t* header = xe_xex2_get_header(xex);
auto header = module->xex_header();
uint32_t result = (header->system_flags & mask) > 0;
SHIM_SET_RETURN_32(result);