mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:29:03 +02:00
Remove unneeded response
This commit is contained in:
parent
9c56f74662
commit
bc5f8ad775
2 changed files with 3 additions and 4 deletions
|
@ -24,8 +24,7 @@ LauncherManager::~LauncherManager() {
|
||||||
void LauncherManager::init() {
|
void LauncherManager::init() {
|
||||||
initLog();
|
initLog();
|
||||||
addToLog(_T("Getting most recent build"));
|
addToLog(_T("Getting most recent build"));
|
||||||
CString response;
|
getMostRecentBuild(_latestApplicationURL, _latestVersion);
|
||||||
getMostRecentBuild(_latestApplicationURL, _latestVersion, response);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL LauncherManager::initLog() {
|
BOOL LauncherManager::initLog() {
|
||||||
|
@ -360,7 +359,7 @@ LauncherUtils::ResponseError LauncherManager::readOrganizationJSON(const CString
|
||||||
return LauncherUtils::ResponseError::ParsingJSON;
|
return LauncherUtils::ResponseError::ParsingJSON;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LauncherManager::getMostRecentBuild(CString& urlOut, CString& versionOut, CString& response) {
|
void LauncherManager::getMostRecentBuild(CString& urlOut, CString& versionOut) {
|
||||||
CString contentTypeJson = L"content-type:application/json";
|
CString contentTypeJson = L"content-type:application/json";
|
||||||
std::function<void(CString, int)> httpCallback = [&](CString response, int err) {
|
std::function<void(CString, int)> httpCallback = [&](CString response, int err) {
|
||||||
LauncherUtils::ResponseError error = LauncherUtils::ResponseError(err);
|
LauncherUtils::ResponseError error = LauncherUtils::ResponseError(err);
|
||||||
|
|
|
@ -67,7 +67,7 @@ public:
|
||||||
BOOL isApplicationInstalled(CString& version, CString& domain,
|
BOOL isApplicationInstalled(CString& version, CString& domain,
|
||||||
CString& content, bool& loggedIn);
|
CString& content, bool& loggedIn);
|
||||||
LauncherUtils::ResponseError getAccessTokenForCredentials(const CString& username, const CString& password);
|
LauncherUtils::ResponseError getAccessTokenForCredentials(const CString& username, const CString& password);
|
||||||
void getMostRecentBuild(CString& urlOut, CString& versionOut, CString& response);
|
void getMostRecentBuild(CString& urlOut, CString& versionOut);
|
||||||
LauncherUtils::ResponseError readOrganizationJSON(const CString& hash);
|
LauncherUtils::ResponseError readOrganizationJSON(const CString& hash);
|
||||||
LauncherUtils::ResponseError readConfigJSON(CString& version, CString& domain,
|
LauncherUtils::ResponseError readConfigJSON(CString& version, CString& domain,
|
||||||
CString& content, bool& loggedIn);
|
CString& content, bool& loggedIn);
|
||||||
|
|
Loading…
Reference in a new issue