3.6.3: finish defines for SystemCheck for Updater + info to helpmenü

This commit is contained in:
Markus 2019-11-04 18:02:42 +01:00
parent d338ed9465
commit 7b92a22ef0
3 changed files with 8 additions and 1 deletions

View File

@ -351,6 +351,8 @@ int unterOption_help(Settings &settings)
<< "\t\"--help\"\tGibt dieses Helpmenue aus." << std::endl
<< "\t\"--version\"\tGibt die Version des Programmes aus." << std::endl
<< "\t\"--update\"\tModus um das Programm zu aktualisieren." << std::endl
<< "\t \tUpdater funktioniert nur bei: Windows/Linux -" << std::endl
<< "\t \tx86 Architekutur - 64 Bit Systemen." << std::endl
<< "\t\"--remove\"\tModus um Ordner mit Einstellungen/" << std::endl
<< "\t \tZwischengespeicherte-Dateien zu löschen." << std::endl
<< "\t\"url\"\t\tModus um eigene Redirect-Links umzuwandeln." << std::endl

View File

@ -81,7 +81,7 @@ struct Settings {
proxy_ip = "127.0.0.1",
languages = "GerDub,GerSub,Eng,",
genaueHoster = "",
version = "3.6.1",
version = "3.6.3",
defaultFileVersion="1.6",
outputFilePath = "",
default_checkPath = "",

View File

@ -1014,6 +1014,11 @@ int ProgramManager::newsModus(Settings *settings)

int ProgramManager::updateModus(Settings *settings)
{
if(settings->VersionFileUrl == "" || settings->ProgrammFileUrl == "") {
std::cout << " => Error: Kein Download Link verfügbar!" << std::endl;
return 4;
}

std::cout << " => INFO: Suche nach der neusten Version..." << std::endl;
std::string html = pageManager.getServerRequest(settings->VersionFileUrl).html;