Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: pcsx2/x86/ix86-32/iR5900-32.cpp
- ===================================================================
- --- pcsx2/x86/ix86-32/iR5900-32.cpp (revision 2842)
- +++ pcsx2/x86/ix86-32/iR5900-32.cpp (working copy)
- @@ -28,6 +28,8 @@
- #include "System/SysThreads.h"
- #include "GS.h"
- +#include "ElfHeader.h"
- +
- #if !PCSX2_SEH
- # include <csetjmp>
- #endif
- @@ -1358,6 +1360,15 @@
- #endif
- }
- +static void __fastcall stealthELF()
- +{
- + wxString elfname;
- + if (GetPS2ElfName(elfname) == 2) {
- + strcpy((char*)PSM(0x1000000), elfname.ToUTF8());
- + cpuRegs.GPR.n.a0.UD[0] = 0x1000000;
- + }
- +}
- +
- static void __fastcall recRecompile( const u32 startpc )
- {
- u32 i = 0;
- @@ -1382,6 +1393,10 @@
- xSetPtr( recPtr );
- recPtr = xGetAlignedCallTarget();
- + if ((startpc & 0x1fffffff) == 0x82bf8) {
- + xCALL(stealthELF);
- + }
- +
- s_pCurBlock = PC_GETBLOCK(startpc);
- pxAssert(s_pCurBlock->GetFnptr() == (uptr)JITCompile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement