Guest User

Untitled

a guest
Apr 29th, 2020
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Hook (use with any stub, I wont be releasing the reversed callback)
  2.  
  3. CODE:
  4. HRESULT AllowRuntimeToHostRelocator(PWCHAR Resource, DWORD TempBuffer, DWORD ResourceSize) // sub_92200360
  5. {
  6. if (lstrcmpW(Resource, L"section://30000EC8,Example#Example") == NULL)
  7. {
  8. insert callback/method here e.g. RedeemToken();
  9. }
  10. return AllowRuntimeToHostRelocatorCallback(Resource, TempBuffer, ResourceSize);
  11. }
  12.  
  13. PatchInJump((PDWORD)0x92200360, (DWORD)AllowRuntimeToHostRelocator, (PDWORD)AllowRuntimeToHostRelocatorCallback);
  14.  
  15. Dummy XML slot
  16.  
  17. CODE:
  18. <slotgroup>
  19. <slot>
  20. <name>CheckTime</name>
  21. <description>Time Remaining</description>
  22. <rating>267242991</rating>
  23. <deepasset>
  24. <format>EpixScene</format>
  25. <path>EsLiveTile</path>
  26. <param>common://ico_64x_clock.png</param>
  27. </deepasset>
  28. <onclick>
  29. <action>EpixCmd</action>
  30. <cmd>EcNavToSceneInApp</cmd>
  31. <param>EcCreateVirtualDisplay</param>
  32. <param2>CheckTime</param2>
  33. </onclick>
  34. </slot>
  35. </slotgroup>
RAW Paste Data