diff options
| author | Tom Tanner <thosrtanner2@users.sourceforge.net> | 2015-08-13 20:07:21 +0100 |
|---|---|---|
| committer | Tom Tanner <thosrtanner2@users.sourceforge.net> | 2015-08-13 20:07:21 +0100 |
| commit | 8e7ac4e064c51cf8bdba7b036a027bdec1f8468f (patch) | |
| tree | 69a166505c7c89d9b57adefc41840ccf8afbaf40 /src/executableslist.h | |
| parent | 9c3b390f081aff3a9777d4bb002e5c5b3bc2473e (diff) | |
Fix the executable configuration flags going awry from Customise window
Diffstat (limited to 'src/executableslist.h')
| -rw-r--r-- | src/executableslist.h | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/src/executableslist.h b/src/executableslist.h index 907b37aa..b8e2afe6 100644 --- a/src/executableslist.h +++ b/src/executableslist.h @@ -127,20 +127,36 @@ public: void addExecutable(const Executable &executable);
/**
- * @brief add a new executable to the list
+ * @brief update an existing executable or add a new one to the list
+ *
+ * @param title name displayed in the UI
+ * @param executableName the actual filename to execute
+ * @param arguments arguments to pass to the executable
+ * @param closeMO if true, MO will be closed when the binary is started
+ **/
+ void updateOrAddExecutable(const QString &title,
+ const QString &executableName,
+ const QString &arguments,
+ const QString &workingDirectory,
+ MOBase::ExecutableInfo::CloseMOStyle closeMO,
+ const QString &steamAppID,
+ bool usesApplicationIcon);
+
+ /**
+ * @brief U[date executable list with configured settings
*
* @param title name displayed in the UI
* @param executableName the actual filename to execute
* @param arguments arguments to pass to the executable
* @param closeMO if true, MO will be closed when the binary is started
**/
- void addExecutable(const QString &title,
- const QString &executableName,
- const QString &arguments,
- const QString &workingDirectory,
- MOBase::ExecutableInfo::CloseMOStyle closeMO,
- const QString &steamAppID,
- Executable::Flags flags);
+ void configureExecutable(const QString &title,
+ const QString &executableName,
+ const QString &arguments,
+ const QString &workingDirectory,
+ MOBase::ExecutableInfo::CloseMOStyle closeMO,
+ const QString &steamAppID,
+ Executable::Flags flags);
/**
* @brief remove the executable with the specified file name. This needs to be an absolute file path
|
