Plugin system and plugin implementations for GameModManager.
The plugin system provides:
- Plugin discovery and loading (
.so/.dll) - Game support registration
- Feature and tool plugin interfaces
- Python plugin support via ABI bridge
include/engine/
├── plugins/ # Core plugin interfaces
│ ├── plugin_info.h # GamePlugin struct (mod metadata)
│ ├── plugin_file.h # Plugin file type detection
│ ├── plugin_database.h # Plugin database management
│ └── esp_header.h # TES4 header parsing
└── plugin_host/ # Plugin hosting infrastructure
├── plugin_loader.h # Plugin loading and management
├── diagnostics_registry.h # Diagnostic provider registration
└── python_loader.h # Python plugin support
src/
├── plugin_database.cpp # Plugin database implementation
├── esp_header.cpp # TES4 header parsing implementation
└── plugin_host/
├── plugin_loader.cpp # Plugin loading implementation
├── diagnostics_registry.cpp
└── python_loader.cpp # Python plugin loader
Register game support via register_identity(). Provide:
- Game detection
- Instance creation
- Mod management
- Plugin sorting
Provide utility features:
- Image diff/merge
- Mod sorting algorithms
- Custom diagnostics
Extend existing functionality:
- Custom source providers
- Additional file handlers
Represents a discovered plugin file (.esm/.esp/.esl):
name- Filenameowner_mod- Mod providing this pluginmasters- Required master filesis_master_flagged- ESM header flagis_light_flagged- ESL header flagis_medium_flagged- ESH header flag (Starfield)
Manages plugin discovery and load order:
refresh()- Discover plugins from game datasort_load_order()- Topological sort by mastersload_profile()/save_profile()- MO2-compatible profileswrite_plugins_txt_for_launch()- Generate plugins.txt
This module requires:
- C++17 compiler
- CMake 3.16+
- Qt 6 (for UI integration)
engine::GameKnowledge- Game metadataengine::PlatformInterface- Platform-specific pathsengine::PluginDatabase- Plugin management