// Generates the base of the config | Генерирует базу конфига
std::string generate_config()
{
std::string OS = getOsName();
bool isYCinstalled = checkYCExistance(); // 1
std::string folderID;
std::string IAMtoken;
std::string lang;
int choosings[4];
printf("At first, let's pick a language:nСначала, выберем язык:nСпочатку, виберiмо мову:nn");
printf("0. Englishn1. Русскийn2. Українськаn");
scanf("%i", &choosings[0]);
if (OS == "ubuntu") // yes
{
if (isYCinstalled) // 1
{
printf("%s", getLocalizedString("INSTALL_YC_BITTE", choosings[0]).c_str()); // bro why it doesnt execute?
}
}
if (OS == "Not supported")
{
printf("%s", getLocalizedString("ERR_OS_NOT_SUPPORTED", choosings[0]).c_str());
kill_myself();
}
return "gleb";
}
I tried changing the outputs of other function, but everything is in vain. It doesn’t execute even though the IF’s are true.
1