From 8e7ac4e064c51cf8bdba7b036a027bdec1f8468f Mon Sep 17 00:00:00 2001 From: Tom Tanner Date: Thu, 13 Aug 2015 20:07:21 +0100 Subject: Fix the executable configuration flags going awry from Customise window --- src/executableslist.h | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'src/executableslist.h') 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 -- cgit v1.3.1