MCPcopy Create free account
hub / github.com/baldurk/renderdoc / openCapture

Method openCapture

qrenderdoc/Windows/Dialogs/LiveCapture.cpp:840–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840void LiveCapture::openCapture(Capture *cap)
841{
842 cap->opened = true;
843
844 if(!cap->local && m_Ctx.Replay().CurrentRemote().Hostname() != rdcstr(m_Hostname))
845 {
846 RDDialog::critical(
847 this, tr("No active replay context"),
848 tr("This capture is on remote host %1 and there is no active replay context on that "
849 "host.\nYou can either save the capture locally, or switch to a replay context on %1.")
850 .arg(m_HostFriendlyname));
851 return;
852 }
853
854 m_Main->LoadCapture(cap->path, m_Ctx.Config().DefaultReplayOptions, !cap->saved, cap->local);
855}
856
857bool LiveCapture::saveCapture(Capture *cap, QString path)
858{

Callers

nothing calls this directly

Calls 7

rdcstrClass · 0.85
criticalFunction · 0.85
CurrentRemoteMethod · 0.80
trFunction · 0.50
argMethod · 0.45
LoadCaptureMethod · 0.45
ConfigMethod · 0.45

Tested by

no test coverage detected