EDCD / EDMarketConnector

Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
GNU General Public License v2.0
987 stars 155 forks source link

[748] Allow Custom Plugins Directory #2267

Open Rixxan opened 6 days ago

Rixxan commented 6 days ago

Description

This PR enables the ability for users to customize their plugin directory away from the default directory's "plugins" folder. This allows users to swap between multiple different plugin "profiles". This does require a restart, so also adds an ability for EDMC to forcefully shut down and restart itself.

Additionally, this updates the post_args callback to not force the settings window to be half-rendered during the callback. This is done by performing two callback operations at various stages with different payloads. While this is slightly duplicative, the impact is negligible. The loading of the Windows config also happens sooner in the program start-up, simply to allow the config to load the new customizable location sooner. This key is created at runtime if it does not exist.

Images

image

Type of Change

Enhancement

How Tested

Tested with various builds and configuration points on Windows builds. Linux has not yet been tested.

Notes

Resolves #748