Penumbra
Penumbra copied to clipboard
Interface/API so that Umbra can request modpack reloads
Ideally Umbra can do something so that Penumbra knows that there's new files to discover. This would then let you, for example, edit and save a file to a modpack and then Penumbra is aware of the new file and will load it the next time the file is requested in game.
Alternatively, we can just listen for filesystem events for the mod directory and load from there, which would make it tool independent.
I'll vouch for the filesystem events method, as we wouldn't want this feature to just not work if someone was simply copying files manually without using software. FileSystemWatcher is simple and easy to use for this, but I'm not sure about its implementation, I've had issues with managed threads before in Dalamud, with the Timer class. In addition, according to the docs we'll have to be weary of the event buffer overflowing if someone installs a mod with many files. Many possibilities