reload player resources once a mod reload has occurred, wip api

This commit is contained in:
Adam 2021-01-09 12:10:19 +11:00
parent f1d8ce0221
commit 77cda604c6
6 changed files with 109 additions and 8 deletions

View file

@ -299,6 +299,22 @@ namespace Penumbra.UI
dirty = true;
}
var http = _plugin.Configuration.EnableHttpApi;
if( ImGui.Checkbox( "Enable HTTP API", ref http ) )
{
if( http )
{
_plugin.CreateWebServer();
}
else
{
_plugin.ShutdownWebServer();
}
_plugin.Configuration.EnableHttpApi = http;
dirty = true;
}
if( ImGui.Button( "Reload Player Resource" ) )
{
_plugin.GameUtils.ReloadPlayerResources();