diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-14 19:13:28 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-15 14:40:40 -0400 |
| commit | 5ca4ea500439bdeee85ca2103374618f2608808d (patch) | |
| tree | 96f3f8de03c051045aa07d482dcacc301437bcc5 /src/executableslist.h | |
| parent | 7671725436551b7254ea89ff6985c5491fcc743d (diff) | |
merged CustomOverwrites and ForcedLibraries, they were mostly identical
some comments
Diffstat (limited to 'src/executableslist.h')
| -rw-r--r-- | src/executableslist.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/executableslist.h b/src/executableslist.h index 61582e71..61bf6734 100644 --- a/src/executableslist.h +++ b/src/executableslist.h @@ -102,9 +102,13 @@ public: /**
* @brief initializes the list from the settings and the given plugin
- */
+ **/
void load(const MOBase::IPluginGame* game, QSettings& settings);
+ /**
+ * @brief re-adds all the executables from the plugin and renames existing
+ * executables that are in the way
+ **/
void resetFromPlugin(MOBase::IPluginGame const *game);
/**
@@ -167,18 +171,28 @@ public: **/
void remove(const QString &title);
+ /**
+ * returns a title that starts with the given prefix and does not clash with
+ * an existing executable, may fail
+ */
std::optional<QString> makeNonConflictingTitle(const QString& prefix);
private:
enum SetFlags
{
+ // executables having the same name as existing ones are ignored
IgnoreExisting = 1,
+
+ // executables having the same name are merged
MergeExisting,
+
+ // an existing executable with the same name is renamed
MoveExisting
};
std::vector<Executable> m_Executables;
+
/**
* @brief add the executables preconfigured for this game
**/
|
