A script extender for REDengine 4 (Cyberpunk 2077).
Paths can be added in the Main
method when called with Load
reason, e.g.:
RED4EXT_C_EXPORT bool RED4EXT_CALL Main(RED4ext::PluginHandle aHandle, RED4ext::EMainReason aReason, const RED4ext::Sdk* aSdk)
{
switch (aReason)
{
case RED4ext::EMainReason::Load:
{
aSdk->scripts->Add(aHandle, L"module.reds");
break;
}
case RED4ext::EMainReason::Unload:
{
break;
}
}
return true;
}