From 6406a6c9b3b5daf9198f704b5dc4f9ba147a5843 Mon Sep 17 00:00:00 2001 From: luca0N! <63941044+luca0N@users.noreply.github.com> Date: Sat, 27 Jun 2020 13:05:16 -0300 Subject: [PATCH] Added license tamper warning --- main.c | 1 + str.h | 1 + 2 files changed, 2 insertions(+) diff --git a/main.c b/main.c index c7e3573..31c872c 100644 --- a/main.c +++ b/main.c @@ -251,6 +251,7 @@ int main(void){ printf("%s\n%s\n\n", PROGRAM_COPYRIGHT, STR_LN); setConsoleColor(FOREGROUND_INTENSITY | FOREGROUND_YELLOW); + printf(FMT_STR_TAMPER_WARNING); unsigned int ignoreWarning = GetPrivateProfileInt("Geral", "IgnorarAlerta", 0, PATH_CFG); unsigned int licenseAccepted = GetPrivateProfileInt("Geral", "AceitarLicença", 0, PATH_CFG); if (!ignoreWarning || !licenseAccepted){ diff --git a/str.h b/str.h index 58b2c6c..6a1ebf3 100644 --- a/str.h +++ b/str.h @@ -22,6 +22,7 @@ #define STR_LN "--------------------------------------" +#define FMT_STR_TAMPER_WARNING "Este programa é distribuído gratuitamente em na licença GNU General Public License versão 3. Você deve ter recebido um arquivo chamado \"LICENSE\" junto com este programa. O arquivo de licença pode ter sido modificado por alguma outra pessoa. Visite na ocorrência em que o arquivo não seja genuíno.\n" #define STR_USE_WARNING "Aviso: é recomendado fechar todos os programas abertos antes de utilizar este programa para poder remover mais arquivos temporários. Deseja continuar? (s/n)" #define STR_FETCHING_ADD_DIRS "Recolhendo pastas adicionais..."