From ff0eb2fb70df3aa374acd1bbba23871a2d4b1cf5 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Fri, 29 Sep 2023 08:23:52 +0200 Subject: Refresh Callback (+ Extra for AboutToRun) (#1884) * Add working directory and arguments to onAboutToRun (optional). * Add onRefreshCallback functionality. --- src/processrunner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/processrunner.cpp') diff --git a/src/processrunner.cpp b/src/processrunner.cpp index f748f490..65e44598 100644 --- a/src/processrunner.cpp +++ b/src/processrunner.cpp @@ -768,8 +768,8 @@ std::optional ProcessRunner::runBinary() // saves profile, sets up usvfs, notifies plugins, etc.; can return false if // a plugin doesn't want the program to run (such as when checkFNIS fails to // run FNIS and the user clicks cancel) - if (!m_core.beforeRun(m_sp.binary, m_profileName, m_customOverwrite, - m_forcedLibraries)) { + if (!m_core.beforeRun(m_sp.binary, m_sp.currentDirectory, m_sp.arguments, + m_profileName, m_customOverwrite, m_forcedLibraries)) { return Error; } -- cgit v1.3.1