MCPcopy Create free account
hub / github.com/dfranx/SHADERed / SearchPlugins

Method SearchPlugins

src/SHADERed/Objects/WebAPI.cpp:476–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 1

m_onlineSearchPluginsMethod · 0.80

Calls 1

LogMethod · 0.80

Tested by

no test coverage detected