diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-11-27 16:39:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-27 16:39:27 -0500 |
| commit | fb3c15094fded829b120274189b0b331a68b2afa (patch) | |
| tree | 767cf5dfa78b71ef888fdac3d115f941eab80688 /src/executableslist.cpp | |
| parent | aab91226b82563eaca16fdb7a86eb2ff1fde5a0a (diff) | |
| parent | d47fc5c973b5b17289c4915e911c4412956361ea (diff) | |
Merge pull request #911 from isanae/relative-path-in-exe
Allow relative paths for binaries in the executables settings
Diffstat (limited to 'src/executableslist.cpp')
| -rw-r--r-- | src/executableslist.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/executableslist.cpp b/src/executableslist.cpp index 1be34b53..75f29e8f 100644 --- a/src/executableslist.cpp +++ b/src/executableslist.cpp @@ -120,7 +120,7 @@ void ExecutablesList::store(Settings& s) map["toolbar"] = item.isShownOnToolbar();
map["ownicon"] = item.usesOwnIcon();
map["hide"] = item.hide();
- map["binary"] = item.binaryInfo().absoluteFilePath();
+ map["binary"] = item.binaryInfo().filePath();
map["arguments"] = item.arguments();
map["workingDirectory"] = item.workingDirectory();
map["steamAppID"] = item.steamAppID();
@@ -358,7 +358,7 @@ void ExecutablesList::dump() const " steam ID: {}\n"
" directory: {}\n"
" flags: {} ({})",
- e.title(), e.binaryInfo().absoluteFilePath(), e.arguments(),
+ e.title(), e.binaryInfo().filePath(), e.arguments(),
e.steamAppID(), e.workingDirectory(), flags.join("|"), e.flags());
}
}
@@ -374,7 +374,7 @@ Executable::Executable(const MOBase::ExecutableInfo& info, Flags flags) : m_binaryInfo(info.binary()),
m_arguments(info.arguments().join(" ")),
m_steamAppID(info.steamAppID()),
- m_workingDirectory(info.workingDirectory().absolutePath()),
+ m_workingDirectory(info.workingDirectory().path()),
m_flags(flags)
{
}
|
