Gui: take in account module-path argument

Use paths passed with `--module-path` argument to search for preference
packs

Change-Id: If168dbd99a826757290ee6b918f5b712305fe2bb
This commit is contained in:
Yury Shvedov
2024-11-04 14:22:22 +03:00
committed by wwmayer
parent 960f4e4d63
commit 7a1ac850e2
3 changed files with 44 additions and 16 deletions

View File

@@ -191,6 +191,11 @@ namespace Gui {
*/
void importConfig(const std::string &packName, const boost::filesystem::path &path);
/**
* Get a list of all mod directories.
*/
std::vector<boost::filesystem::path> modPaths() const;
private:
void FindPreferencePacksInPackage(const boost::filesystem::path& mod);