patchfinder64.h 533 B

1234567891011121314151617181920212223242526
  1. #ifndef PATCHFINDER64_H_
  2. #define PATCHFINDER64_H_
  3. #define CACHED_FIND(type, name) \
  4. type __##name(void);\
  5. type name(void) { \
  6. type cached = 0; \
  7. if (cached == 0) { \
  8. cached = __##name(); \
  9. } \
  10. return cached; \
  11. } \
  12. type __##name(void)
  13. int init_kernel(uint64_t base, const char *filename);
  14. void term_kernel(void);
  15. // Fun part
  16. uint64_t find_add_x0_x0_0x40_ret(void);
  17. uint64_t find_OSBoolean_True(void);
  18. uint64_t find_OSBoolean_False(void);
  19. uint64_t find_osunserializexml(void);
  20. uint64_t find_cs_find_md(void);
  21. #endif