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

Method CheckForApplicationUpdates

src/SHADERed/Objects/WebAPI.cpp:419–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417 m_changelogThread = new std::thread(getChangelog, onFetch);
418 }
419 void WebAPI::CheckForApplicationUpdates(std::function<void()> onUpdate)
420 {
421 Logger::Get().Log("Checking for updates with WebAPI");
422
423 if (m_updateThread != nullptr && m_updateThread->joinable())
424 m_updateThread->join();
425 delete m_updateThread;
426 m_updateThread = new std::thread(checkUpdates, onUpdate);
427 }
428 void WebAPI::SearchShaders(const std::string& query, int page, const std::string& sort, const std::string& language, const std::string& owner, bool excludeGodotShaders, bool includeCPPShaders, bool includeRustShaders, std::function<void(const std::vector<ShaderResult>&)> onFetch)
429 {
430 Logger::Get().Log("Searching shaders with WebAPI");

Callers 1

m_splashScreenRenderMethod · 0.80

Calls 1

LogMethod · 0.80

Tested by

no test coverage detected