mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
Add a command line parameter --remoteaccess to connect to instance
* This is useful in e.g. a renderdoc-aware application that has voluntarily injected renderdoc, and then wants to boot the UI to automatically open up the management connection
This commit is contained in:
@@ -66,6 +66,8 @@ namespace renderdocui.Windows
|
||||
|
||||
private Core m_Core;
|
||||
private string m_InitFilename;
|
||||
private string m_InitRemoteHost;
|
||||
private uint m_InitRemoteIdent;
|
||||
|
||||
private List<LiveCapture> m_LiveCaptures = new List<LiveCapture>();
|
||||
|
||||
@@ -123,7 +125,7 @@ namespace renderdocui.Windows
|
||||
}
|
||||
}
|
||||
|
||||
public MainWindow(Core core, string initFilename, bool temp)
|
||||
public MainWindow(Core core, string initFilename, string remoteHost, uint remoteIdent, bool temp)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
@@ -141,6 +143,8 @@ namespace renderdocui.Windows
|
||||
|
||||
m_Core = core;
|
||||
m_InitFilename = initFilename;
|
||||
m_InitRemoteHost = remoteHost;
|
||||
m_InitRemoteIdent = remoteIdent;
|
||||
OwnTemporaryLog = temp;
|
||||
|
||||
logStatisticsToolStripMenuItem.Enabled = false;
|
||||
@@ -190,6 +194,12 @@ namespace renderdocui.Windows
|
||||
PopulateRecentFiles();
|
||||
PopulateRecentCaptures();
|
||||
|
||||
if (m_InitRemoteIdent != 0)
|
||||
{
|
||||
var live = new LiveCapture(m_Core, m_InitRemoteHost, m_InitRemoteIdent, this);
|
||||
ShowLiveCapture(live);
|
||||
}
|
||||
|
||||
if (m_InitFilename != "")
|
||||
{
|
||||
if(Path.GetExtension(m_InitFilename) == ".rdc")
|
||||
|
||||
Reference in New Issue
Block a user