Loading other plugins fails when a plugin interacts with filesystem in red4ext/plugins/
Closed this issue · 0 comments
RED4ext: v1.24.3
I'm currently implementing a migration routine, moving from <game>/red4ext/plugins/RedFileSystem/storages
to <game>/r6/storages
. I recursively copy files to the new directory, and delete the old directory, without errors. However, next plugins to be loaded by RED4ext are ignored (no log about them + crash because ofc native definitions are not found by redscript). If I run again, routine is not triggered, and all plugins are loaded as expected. Migration routine is called within RED4ext::EMainReason::Load
callback, after registering types.
Culprit should be when iterating over plugins and loading them at the same time.
I'll look into this and propose a PR to first discover/queue plugins and load them after.
Workaround: only copy directory, and remove it when Unload
is triggered.