A library with some core utilities for making Cyberpunk 2077 mods using RED4ext, along with various reverse engineered data. Mostly put together for my personal use.
Credits to psiberx, a lot of this library is ripped off from him.
git submodule add https://github.com/alphanin9/SharedPunk.git deps/sharedpunk
Add this to your xmake.lua file:
includes("deps/sharedpunk/xmake.lua")
...
target("your-cool-mod")
...
add_deps("cp2077-shared-data", ...)Note: the <Impl/> directory contains various implementation data (hooking detail, address hashes for defined reversed functions, etc), it should not be necessary to include anything from there directly
#include <Shared/Util/Core.hpp>
constexpr auto fn = shared::util::RawFunc<...>();