mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
Remove unused include and very small refactoring.
Unused include in unself.h, ELF.h. New line after an if to enable debugging. Rewrite strange boolean expression in ELF.cpp.
This commit is contained in:
parent
9834fc7f70
commit
7dafb164e8
7 changed files with 60 additions and 33 deletions
|
@ -372,13 +372,16 @@ bool ELF64Loader::LoadPhdrData(u64 offset)
|
|||
|
||||
auto& proc_param = vm::get_ref<sys_process_param>(offset + phdr.p_vaddr);
|
||||
|
||||
if (proc_param.size < sizeof(sys_process_param)) {
|
||||
if (proc_param.size < sizeof(sys_process_param))
|
||||
{
|
||||
LOG_WARNING(LOADER, "Bad proc param size! [0x%x : 0x%x]", proc_param.size, sizeof(sys_process_param));
|
||||
}
|
||||
if (proc_param.magic != 0x13bcc5f6) {
|
||||
if (proc_param.magic != 0x13bcc5f6)
|
||||
{
|
||||
LOG_ERROR(LOADER, "Bad magic! [0x%x]", proc_param.magic);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
#ifdef LOADER_DEBUG
|
||||
sys_process_param_info& info = Emu.GetInfo().GetProcParam();
|
||||
LOG_NOTICE(LOADER, "*** sdk version: 0x%x", info.sdk_version.ToLE());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue