mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 03:41:01 +00:00
Require explicit opt-in to enable process injection on windows
* This option (in spite of large warnings) continues to be a pitfall for new and experienced users alike, trying to use process injection without good reason and getting into trouble when it breaks.
This commit is contained in:
@@ -115,7 +115,11 @@ MainWindow::MainWindow(ICaptureContext &ctx) : QMainWindow(NULL), ui(new Ui::Mai
|
||||
|
||||
setProperty("ICaptureContext", QVariant::fromValue((void *)&ctx));
|
||||
|
||||
#if !defined(Q_OS_WIN32)
|
||||
#if defined(Q_OS_WIN32)
|
||||
// remove inject menu item when it's not enabled in the settings
|
||||
if(!ctx.Config().AllowProcessInject)
|
||||
ui->menu_File->removeAction(ui->action_Inject_into_Process);
|
||||
#else
|
||||
// process injection is not supported on non-Windows, so remove the menu item rather than disable
|
||||
// it without a clear way to communicate that it is never supported
|
||||
ui->menu_File->removeAction(ui->action_Inject_into_Process);
|
||||
|
||||
Reference in New Issue
Block a user