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

Method LoadFromFilename

qrenderdoc/Windows/MainWindow.cpp:686–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686void MainWindow::LoadFromFilename(const QString &filename, bool temporary)
687{
688 QFileInfo path(filename);
689 QString ext = path.suffix().toLower();
690
691 if(ext == lit("rdc"))
692 {
693 LoadCapture(filename, m_Ctx.Config().DefaultReplayOptions, temporary, true);
694 }
695 else if(ext == lit("cap"))
696 {
697 OpenCaptureConfigFile(filename, false);
698 }
699 else if(ext == lit("exe"))
700 {
701 OpenCaptureConfigFile(filename, true);
702 }
703 else
704 {
705 // not a recognised filetype, see if we can load it anyway
706 LoadCapture(filename, m_Ctx.Config().DefaultReplayOptions, temporary, true);
707 }
708}
709
710void MainWindow::OnCaptureTrigger(const QString &exe, const QString &workingDir,
711 const QString &cmdLine,

Callers 1

BeginMethod · 0.80

Calls 2

toLowerMethod · 0.80
ConfigMethod · 0.45

Tested by

no test coverage detected