Permalink
Browse files

Module: Stop reporting bad magic numbers.

We get these a lot, and they seem to be related to corrupt isos, not
related to actual emulation issues we can do anything about.

Even if there's a game trying to load an SFO as a PRX out there somewhere,
we'll never find it among all the noise.
  • Loading branch information...
unknownbrackets committed Nov 30, 2017
1 parent 39fc2c8 commit 9a71ac726bb9cb5a9b842e066730fe193f49d9a7
Showing with 1 addition and 5 deletions.
  1. +1 −1 Core/HLE/sceKernelModule.cpp
  2. +0 −4 ext/native/ui/viewgroup.cpp
@@ -1148,7 +1148,7 @@ static Module *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 loadAdd
// DO NOT change to else if, see above.
if (*magicPtr != 0x464c457f) {
ERROR_LOG_REPORT(SCEMODULE, "Wrong magic number %08x", *magicPtr);
ERROR_LOG(SCEMODULE, "Wrong magic number %08x", *magicPtr);
*error_string = "File corrupt";
if (newptr)
delete [] newptr;
@@ -1314,10 +1314,6 @@ EventReturn ListView::OnItemCallback(int num, EventParams &e) {
View *focused = GetFocusedView();
OnChoice.Trigger(ev);
CreateAllItems();
// TODO: At this point, focused may no longer exist, depending on what OnChoice.Trigger does.
// Disable the refocus feature for now.
// if (focused)
// SetFocusedView(e.v);
return EVENT_DONE;
}

0 comments on commit 9a71ac7

Please sign in to comment.