2024-08-04 20:59:07 +02:00
|
|
|
#pragma once
|
|
|
|
|
2024-08-09 16:41:29 +02:00
|
|
|
#include <set>
|
2024-08-04 20:59:07 +02:00
|
|
|
#include <span>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace WUPSBackendSettings {
|
|
|
|
bool LoadSettings();
|
|
|
|
|
|
|
|
bool SaveSettings();
|
|
|
|
|
2024-08-09 16:41:29 +02:00
|
|
|
void ClearInactivePluginFilenames();
|
2024-08-04 20:59:07 +02:00
|
|
|
|
2024-08-09 16:41:29 +02:00
|
|
|
void AddInactivePluginFilename(const std::string &filename);
|
|
|
|
|
|
|
|
template<typename Iterable>
|
|
|
|
void SetInactivePluginFilenames(const Iterable &filenames) {
|
|
|
|
ClearInactivePluginFilenames();
|
|
|
|
for (const auto &cur : filenames) {
|
|
|
|
AddInactivePluginFilename(cur);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::set<std::string> &GetInactivePluginFilenames();
|
2024-08-04 20:59:07 +02:00
|
|
|
}; // namespace WUPSBackendSettings
|