mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
Change renderdoccmd to be a console program on windows.
* This means it outputs natively/properly to stdout/stderr and its output can be redirected with pipes. * It does mean we need to be very careful whenever it's run internally to not pop up a command window, which happens by default.
This commit is contained in:
@@ -1516,7 +1516,7 @@ bool IsRunningAsAdmin()
|
||||
}
|
||||
|
||||
bool RunProcessAsAdmin(const QString &fullExecutablePath, const QStringList ¶ms,
|
||||
QWidget *parent, std::function<void()> finishedCallback)
|
||||
QWidget *parent, bool hidden, std::function<void()> finishedCallback)
|
||||
{
|
||||
#if defined(Q_OS_WIN32)
|
||||
|
||||
@@ -1536,7 +1536,7 @@ bool RunProcessAsAdmin(const QString &fullExecutablePath, const QStringList &par
|
||||
info.lpVerb = L"runas";
|
||||
info.lpFile = wideExe.c_str();
|
||||
info.lpParameters = wideParams.c_str();
|
||||
info.nShow = SW_SHOWNORMAL;
|
||||
info.nShow = hidden ? SW_HIDE : SW_SHOWNORMAL;
|
||||
|
||||
ShellExecuteExW(&info);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user