Added license tamper warning

This commit is contained in:
luca0N! 2020-06-27 13:05:16 -03:00
parent df325b783a
commit 6406a6c9b3
No known key found for this signature in database
GPG Key ID: 9F1B99B522287CAB
2 changed files with 2 additions and 0 deletions

1
main.c
View File

@ -251,6 +251,7 @@ int main(void){
printf("%s\n%s\n\n", PROGRAM_COPYRIGHT, STR_LN); printf("%s\n%s\n\n", PROGRAM_COPYRIGHT, STR_LN);
setConsoleColor(FOREGROUND_INTENSITY | FOREGROUND_YELLOW); setConsoleColor(FOREGROUND_INTENSITY | FOREGROUND_YELLOW);
printf(FMT_STR_TAMPER_WARNING);
unsigned int ignoreWarning = GetPrivateProfileInt("Geral", "IgnorarAlerta", 0, PATH_CFG); unsigned int ignoreWarning = GetPrivateProfileInt("Geral", "IgnorarAlerta", 0, PATH_CFG);
unsigned int licenseAccepted = GetPrivateProfileInt("Geral", "AceitarLicença", 0, PATH_CFG); unsigned int licenseAccepted = GetPrivateProfileInt("Geral", "AceitarLicença", 0, PATH_CFG);
if (!ignoreWarning || !licenseAccepted){ if (!ignoreWarning || !licenseAccepted){

1
str.h
View File

@ -22,6 +22,7 @@
#define STR_LN "--------------------------------------" #define STR_LN "--------------------------------------"
#define FMT_STR_TAMPER_WARNING "Este programa é distribuído gratuitamente em <https://github.com/luca0N/ldl3> 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 <https://www.gnu.org/licenses/> 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_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..." #define STR_FETCHING_ADD_DIRS "Recolhendo pastas adicionais..."