diff options
Diffstat (limited to 'src/spawn.cpp')
| -rw-r--r-- | src/spawn.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/spawn.cpp b/src/spawn.cpp index fbd4c286..5b14c52c 100644 --- a/src/spawn.cpp +++ b/src/spawn.cpp @@ -39,6 +39,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QtDebug>
#include <Shellapi.h>
#include <fmt/format.h>
+#include <fmt/xchar.h>
using namespace MOBase;
using namespace MOShared;
@@ -252,7 +253,7 @@ void helperFailed( const std::wstring& cwd, const std::wstring& args)
{
SpawnParameters sp;
- sp.binary = QString::fromStdWString(binary);
+ sp.binary = QFileInfo(QString::fromStdWString(binary));
sp.currentDirectory.setPath(QString::fromStdWString(cwd));
sp.arguments = QString::fromStdWString(args);
@@ -620,7 +621,7 @@ bool startSteam(QWidget* parent) }
SpawnParameters sp;
- sp.binary = exe;
+ sp.binary = QFileInfo(exe);
// See if username and password supplied. If so, pass them into steam.
QString username, password;
@@ -911,7 +912,7 @@ QFileInfo getCmdPath() {
const auto p = env::get("COMSPEC");
if (!p.isEmpty()) {
- return p;
+ return QFileInfo(p);
}
QString systemDirectory;
@@ -930,7 +931,7 @@ QFileInfo getCmdPath() systemDirectory = "C:\\Windows\\System32\\";
}
- return systemDirectory + "cmd.exe";
+ return QFileInfo(systemDirectory + "cmd.exe");
}
FileExecutionTypes getFileExecutionType(const QFileInfo& target)
|
