mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 05:04:15 +01:00
Fix some enabling stuff. Always use PathResolver. Add counter to materials and imcs.
This commit is contained in:
parent
e8ee729ec5
commit
15602f5be5
6 changed files with 22 additions and 35 deletions
|
|
@ -90,11 +90,6 @@ public class Penumbra : IDalamudPlugin
|
|||
HelpMessage = "/penumbra - toggle ui\n/penumbra reload - reload mod file lists & discover any new mods",
|
||||
} );
|
||||
|
||||
if( Config.DebugMode )
|
||||
{
|
||||
ResourceLoader.EnableDebug();
|
||||
}
|
||||
|
||||
ResidentResources.Reload();
|
||||
|
||||
Api = new PenumbraApi( this );
|
||||
|
|
@ -111,6 +106,7 @@ public class Penumbra : IDalamudPlugin
|
|||
if( Config.EnableMods )
|
||||
{
|
||||
ResourceLoader.EnableReplacements();
|
||||
PathResolver.Enable();
|
||||
}
|
||||
|
||||
if( Config.DebugMode )
|
||||
|
|
@ -124,11 +120,6 @@ public class Penumbra : IDalamudPlugin
|
|||
ResourceLoader.EnableFullLogging();
|
||||
}
|
||||
|
||||
if( CollectionManager.HasCharacterCollections )
|
||||
{
|
||||
PathResolver.Enable();
|
||||
}
|
||||
|
||||
ResidentResources.Reload();
|
||||
}
|
||||
|
||||
|
|
@ -162,6 +153,7 @@ public class Penumbra : IDalamudPlugin
|
|||
ResourceLoader.EnableReplacements();
|
||||
CollectionManager.Default.SetFiles();
|
||||
ResidentResources.Reload();
|
||||
PathResolver.Enable();
|
||||
|
||||
Config.Save();
|
||||
ObjectReloader.RedrawAll( RedrawType.Redraw );
|
||||
|
|
@ -179,6 +171,7 @@ public class Penumbra : IDalamudPlugin
|
|||
ResourceLoader.DisableReplacements();
|
||||
CharacterUtility.ResetAll();
|
||||
ResidentResources.Reload();
|
||||
PathResolver.Disable();
|
||||
|
||||
Config.Save();
|
||||
ObjectReloader.RedrawAll( RedrawType.Redraw );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue