MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / queueUpdateCheck

Method queueUpdateCheck

pcsx2-qt/AutoUpdaterDialog.cpp:202–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void AutoUpdaterDialog::queueUpdateCheck(bool display_message)
203{
204 m_display_messages = display_message;
205
206 if (isSupported())
207 {
208 if (!ensureHttpReady())
209 {
210 emit updateCheckCompleted();
211 return;
212 }
213
214 m_http->CreateRequest(QStringLiteral(LATEST_RELEASE_URL).arg(getCurrentUpdateTag()).toStdString(),
215 std::bind(&AutoUpdaterDialog::getLatestReleaseComplete, this, std::placeholders::_1, std::placeholders::_3));
216 }
217 else
218 {
219 emit updateCheckCompleted();
220 }
221}
222
223void AutoUpdaterDialog::getLatestReleaseComplete(s32 status_code, std::vector<u8> data)
224{

Callers 1

checkForUpdatesMethod · 0.80

Calls 3

bindFunction · 0.85
CreateRequestMethod · 0.80
argMethod · 0.80

Tested by

no test coverage detected