daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest May 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: pcsx2/x86/ix86-32/iR5900-32.cpp
  2. ===================================================================
  3. --- pcsx2/x86/ix86-32/iR5900-32.cpp (revision 2842)
  4. +++ pcsx2/x86/ix86-32/iR5900-32.cpp (working copy)
  5. @@ -28,6 +28,8 @@
  6.  #include "System/SysThreads.h"
  7.  #include "GS.h"
  8.  
  9. +#include "ElfHeader.h"
  10. +
  11.  #if !PCSX2_SEH
  12.  #  include <csetjmp>
  13.  #endif
  14. @@ -1358,6 +1360,15 @@
  15.  #endif
  16.  }
  17.  
  18. +static void __fastcall stealthELF()
  19. +{
  20. +   wxString elfname;
  21. +   if (GetPS2ElfName(elfname) == 2) {
  22. +       strcpy((char*)PSM(0x1000000), elfname.ToUTF8());
  23. +       cpuRegs.GPR.n.a0.UD[0] = 0x1000000;
  24. +   }
  25. +}
  26. +
  27.  static void __fastcall recRecompile( const u32 startpc )
  28.  {
  29.     u32 i = 0;
  30. @@ -1382,6 +1393,10 @@
  31.     xSetPtr( recPtr );
  32.     recPtr = xGetAlignedCallTarget();
  33.  
  34. +   if ((startpc & 0x1fffffff) == 0x82bf8) {
  35. +       xCALL(stealthELF);
  36. +   }
  37. +
  38.     s_pCurBlock = PC_GETBLOCK(startpc);
  39.  
  40.     pxAssert(s_pCurBlock->GetFnptr() == (uptr)JITCompile
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top