mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Merge branch 'default_login' of https://github.com/bwrsandman/lgogdownloader
This commit is contained in:
commit
535bbc52e3
7
main.cpp
7
main.cpp
@ -423,6 +423,8 @@ int main(int argc, char *argv[])
|
||||
int iLoginResult = 0;
|
||||
if (config.bLoginAPI || config.bLoginHTTP || initResult == 1)
|
||||
{
|
||||
if (!config.bLoginAPI && !config.bLoginHTTP)
|
||||
downloader.config.bLoginAPI = true;
|
||||
iLoginResult = downloader.login();
|
||||
if (iLoginResult == 0)
|
||||
return 1;
|
||||
@ -489,7 +491,8 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
ofs.close();
|
||||
Util::setFilePermissions(config.sConfigFilePath, boost::filesystem::owner_read | boost::filesystem::owner_write);
|
||||
return 0;
|
||||
if (config.bSaveConfig)
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -517,7 +520,7 @@ int main(int argc, char *argv[])
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
else if (config.bShowWishlist)
|
||||
if (config.bShowWishlist)
|
||||
downloader.showWishlist();
|
||||
else if (config.bUpdateCache)
|
||||
downloader.updateCache();
|
||||
|
Loading…
Reference in New Issue
Block a user