| 1855 | } |
| 1856 | |
| 1857 | IDeviceProtocolHandler *RenderDoc::GetDeviceProtocol(const rdcstr &protocol) |
| 1858 | { |
| 1859 | rdcstr p = protocol; |
| 1860 | |
| 1861 | // allow passing in an URL with :// |
| 1862 | int32_t offs = p.find("://"); |
| 1863 | if(offs >= 0) |
| 1864 | p.erase(offs, p.size() - offs); |
| 1865 | |
| 1866 | auto it = m_Protocols.find(p); |
| 1867 | |
| 1868 | if(it != m_Protocols.end()) |
| 1869 | return it->second(); |
| 1870 | |
| 1871 | return NULL; |
| 1872 | } |
| 1873 | |
| 1874 | rdcarray<CaptureFileFormat> RenderDoc::GetCaptureFileFormats() |
| 1875 | { |
no test coverage detected