implemeted skipCheck

This commit is contained in:
Václav Šmejkal 2022-05-02 18:01:52 +02:00
parent c5dca2c782
commit b3e444e2d9
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
void
checkVersion()
{
if (SKIP_CHECK) return;
if (getSkipCheck()) return;
//FILE-CHECK VARIABLES
int notFoundBuffer = 0;

View File

@ -4,6 +4,7 @@
#include <why2/encrypter.h>
#include <why2/decrypter.h>
#include <why2/flags.h>
#define TEST_TEXT "Pepa smrdí."
#define TEST_KEY "lZwOBFvjJEmaYRIaKsALKLkSeJvXhFPbZIRNFbjQRNyiOuLTexhgOpObHzyQgNT"
@ -13,8 +14,7 @@ main(int argc, char *argv[])
{
if (argc == 2 && strcmp(argv[1], "skipCheck") == 0)
{
#undef SKIP_CHECK
#define SKIP_CHECK 0
setSkipCheck(1);
}
char *text = encryptText(TEST_TEXT, TEST_KEY);