Dalamud/Dalamud/Plugin
AzureGem 9f9a41c768
Do not load plugins before performing checks
Modify the logic to perform all checks before proceeding to load the assembly and create an instance of the plugin

- Removed `bool preloaded` in exchange to a `null` check in `pluginDef`.
- Moved all checks into a common place before loading the assembly and before creating an instance.
  - Applicable Version check
  - Dalamud API check
  - Banned Plugins check
- Checks will only be performed on raw / developer plugins.
- Removed the old banned plugin code since the data is now in `bannedplugins.json`.

All checks in the types foreach is removed since all the checks would had already be performed before then *(Only developer plugins has no pluginDef)*

This should avoid mysterious crashes in future updates without making any major API / behavior changes.
2021-04-17 01:18:36 -04:00
..
DalamudPluginInterface.cs feat: update loc to allow use by plugins 2021-04-10 13:45:28 -04:00
IDalamudPlugin.cs refactor: new code style in IDalamudPlugin.cs 2021-04-01 20:53:37 +02:00
PluginDefinition.cs refactor: rename DALAMUD_API_LEVEL 2021-04-01 21:12:07 +02:00
PluginInstallerWindow.cs feat: refresh plugin tabs after an update 2021-04-14 23:21:21 +02:00
PluginLoadReason.cs refactor: new code style in PluginLoadReason.cs 2021-03-31 17:05:37 +02:00
PluginLog.cs refactor: new code style in PluginLog.cs 2021-03-31 17:04:59 +02:00
PluginManager.cs Do not load plugins before performing checks 2021-04-17 01:18:36 -04:00
PluginRepository.cs fix: use the right url for pluginmaster this time 2021-04-13 14:26:27 +02:00