| 474 | return false; |
| 475 | } |
| 476 | void WebAPI::SearchPlugins(const std::string& query, int page, const std::string& sort, const std::string& owner, std::function<void(const std::vector<WebAPI::PluginResult>&)> onFetch) |
| 477 | { |
| 478 | Logger::Get().Log("Searching SHADERed plugins with WebAPI"); |
| 479 | |
| 480 | if (m_pluginsThread != nullptr && m_pluginsThread->joinable()) |
| 481 | m_pluginsThread->join(); |
| 482 | delete m_pluginsThread; |
| 483 | m_pluginsThread = new std::thread(searchPlugins, query, page, sort, owner, onFetch); |
| 484 | } |
| 485 | char* WebAPI::DecodeThumbnail(const std::string& base64, size_t& length) |
| 486 | { |
| 487 | std::string decoded = base64_decode(base64); |
no test coverage detected