summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-24 02:28:20 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:42:57 -0500
commite43500eaf5d40bcd28ba5a820cdbc754cfb47e40 (patch)
tree7e7fafe036453cc585855eb1f3275335c37e7fb6 /src/mainwindow.cpp
parent4fb79cae456986795be3f504d440048e476dffb3 (diff)
renamed runExecutable() to runExecutablefile()
added runExecutable() for Executable class, also used by runShortcut()
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index b5b9ab0d..2474fdc0 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1542,26 +1542,8 @@ void MainWindow::startExeAction()
}
action->setEnabled(false);
- const Executable& exe = *itor;
- auto& profile = *m_OrganizerCore.currentProfile();
-
- QString customOverwrite = profile.setting("custom_overwrites", exe.title()).toString();
- auto forcedLibraries = profile.determineForcedLibraries(exe.title());
-
- if (!profile.forcedLibrariesEnabled(exe.title())) {
- forcedLibraries.clear();
- }
-
- m_OrganizerCore.spawnBinary(
- exe.binaryInfo(), exe.arguments(),
- exe.workingDirectory().length() != 0
- ? exe.workingDirectory()
- : exe.binaryInfo().absolutePath(),
- exe.steamAppID(),
- customOverwrite,
- forcedLibraries);
+ m_OrganizerCore.runExecutable(*itor);
action->setEnabled(true);
-
}
void MainWindow::activateSelectedProfile()
@@ -2387,7 +2369,7 @@ void MainWindow::on_startButton_clicked()
forcedLibraries.clear();
}
- m_OrganizerCore.spawnBinary(
+ m_OrganizerCore.runExecutableFile(
selectedExecutable->binaryInfo(),
selectedExecutable->arguments(),
selectedExecutable->workingDirectory().length() != 0 ?
@@ -5477,7 +5459,7 @@ void MainWindow::openDataFile()
}
QFileInfo targetInfo(m_ContextItem->data(0, Qt::UserRole).toString());
- m_OrganizerCore.executeFileVirtualized(this, targetInfo);
+ m_OrganizerCore.runFile(this, targetInfo);
}
void MainWindow::openDataOriginExplorer_clicked()