Advertisement
rf0odxm0dz

PS4 RDR2 getGlobal function

Jan 18th, 2022
945
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #if GAME_VERSION == 100
  2. #define GLOBAL_ADDR 0x872DC58
  3. #elif GAME_VERSION == 113
  4. #define GLOBAL_ADDR 0x8F32358
  5. #elif GAME_VERSION == 119
  6. #define GLOBAL_ADDR 0x90DBF18
  7. #elif GAME_VERSION == 124
  8. #define GLOBAL_ADDR 0x91F7F98
  9. #elif GAME_VERSION == 129
  10. #define GLOBAL_ADDR 0x9653EF8
  11. #endif
  12.  
  13. unsigned long long* getGlobal(int index) {
  14. static unsigned long long** array = (unsigned long long**)GLOBAL_ADDR;
  15. return &array[index >> 0x12 & 0x3F][index & 0x3FFFF];
  16. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement