WopsS / RED4ext.SDK

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

Adds Scripts to SDK for loading redscript through RED4ext #78

Closed jackhumbert closed 1 year ago

jackhumbert commented 1 year ago

Paired with https://github.com/WopsS/RED4ext/pull/21

Paths can be added via the Scripts::Add function in the sdk, during Load:

aSdk->scripts->Add(aHandle, L"module.reds");

Paths can either directories or files (handled by scc), relative to the plugin's folder, or absolute (mainly for testing/development).

This will also force script compilation when REDmods are enabled, which will cause double-compilation if cybercmd is installed - cybercmd is no longer needed for this scenario.