llBeastModell

HUD.h 17502

Jun 14th, 2016
553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.72 KB | None | 0 0
  1. #pragma once
  2.  
  3. #ifndef HUD_H
  4. #define HUD_H
  5.  
  6. #include "stdafx.h"
  7. #include <stdio.h>
  8. //#include "xecrypt.h"
  9. #include "Utilities.h"
  10. //#include "XexLoadImage.h"
  11.  
  12. #define HUD_FamilySettings_String  "XBLCAP Options"
  13. #define HUD_FamilySettings_Len     15
  14.  
  15. int HUD_PatchLabels(void);
  16.  
  17. typedef DWORD (*HUD_FILLLAUNCHDATA)(DWORD* XDashLaunchData ,DWORD r4, DWORD selection);
  18. //static HUD_FILLLAUNCHDATA HUD_FillLaunchData = (HUD_FILLLAUNCHDATA)HUD_FillLaunchData_Func;*/
  19.  
  20. typedef DWORD (*HUD_BOOTTODASHHELPER)(DWORD* _XUIOBJ, _XDASHLAUNCHDATA* LaunchData , DWORD* cstr, DWORD* r6, DWORD* r7);
  21. //static HUD_BOOTTODASHHELPER HUD_BootToDashHelper = (HUD_BOOTTODASHHELPER)HUD_BootToDashHelper_Func;
  22.  
  23.  
  24. //BootToDashHelper(DWORD* _XUIOBJ, DWORD* _XDASHLAUNCHDATA , DWORD* cstr, DWORD* r6, DWORD* r7)
  25. //DWORD HUD_FillLaunchData_Hook(DWORD* XDashLaunchData ,DWORD r4, DWORD selection);
  26. DWORD HUD_BootToDashHelper_Hook(DWORD* _XUIOBJ, _XDASHLAUNCHDATA* LaunchData , DWORD* cstr, DWORD* r6, DWORD* r7);
  27.  
  28.  
  29. static BOOL testhud=false;
  30.  
  31. typedef struct __HUDOffsets
  32. {
  33.     DWORD FamilySettings_LaunchStr;
  34.     DWORD BootToDashHelper_Jump;
  35.     DWORD LaunchData_FamilySettings;
  36.     DWORD BootToDashHelper_Func;
  37.     //Use xextool to dump resources from hud.xex.  Search for "Family Settings"
  38.     //NOTE: New string cannot be longer than the old one
  39.     DWORD FamilySettings_Str1;
  40.     DWORD FamilySettings_Str2;
  41. } HUDOffsets;
  42.  
  43.  
  44. //static HUDOffsets hud_17489 = {
  45. //  0x913F12D4, //FamilySettings_LaunchStr   //DONE  913F0314
  46. //  0x913E7498, //BootToDashHelper_Jump //DONE
  47. //  0x14, //LaunchData_FAMILYSETTINGS    //should be the same       0x14 //same
  48. //  0x913E72C0, //HUD_BootToDashHelper_Func //DONE
  49. //  0x119B8, //FamilySettings_Str1 //should be the same             0x119B8 //same
  50. //  0x11F02, //FamilySettings_Str2//should be the same              0x12172 //updated
  51. //};
  52.  
  53. static HUDOffsets hud_17502 = {
  54.     0x913F0314, //FamilySettings_LaunchStr
  55.     0x913E6468, //BootToDashHelper_Jump
  56.     0x14, //LaunchData_FAMILYSETTINGS
  57.     0x913E6290, //HUD_BootToDashHelper_Func
  58.     0x119B8, //FamilySettings_Str1 //should be the same
  59.     0x11F02, //FamilySettings_Str2//should be the same
  60. };
  61.  
  62. static HUDOffsets hud_17502_2 = { // updated
  63.     0x913EBEC4, //FamilySettings_LaunchStr = UPDATED , was a bitch to find            //UPDATED
  64.     0x913E595C, //BootToDashHelper_Jump  = UPDATED                                    //UPDATED
  65.     0x14, //LaunchData_FAMILYSETTINGS = ???????                                       //SAME
  66.     0x913E657C, //HUD_BootToDashHelper_Func = UPDATED                                 //UPDATED
  67.     0x119B8, //FamilySettings_Str1 = ????????                                         //SAME
  68.     0x11F02 //FamilySettings_Str2 = ?????                                             //SMAE
  69. };
  70.  
  71. #endif
Advertisement
Add Comment
Please, Sign In to add comment