WopsS / RED4ext.SDK

A library to create mods for REDengine 4 (Cyberpunk 2077), independently of RED4ext.
MIT License
100 stars 33 forks source link

Implement version agnostic addresses #107

Closed WopsS closed 7 months ago

WopsS commented 7 months ago

This PR introduces the UniversalReloc classes, a new feature that enables address relocation using the game's JSON file. The classes utilize an exported DLL function from the RED4ext DLL. By using UniversalReloc<Ptr,Func,Vtbl>(hash), the corresponding address for the hash can be retrieved.

CC: @maximegmd @jackhumbert @psiberx @WSSDude