mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-30 12:23:41 +01:00
reload player resources once a mod reload has occurred, wip api
This commit is contained in:
parent
f1d8ce0221
commit
77cda604c6
6 changed files with 109 additions and 8 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue