diff --git a/include/flags.h b/include/flags.h index 1912cec..62ba2e0 100644 --- a/include/flags.h +++ b/include/flags.h @@ -11,4 +11,6 @@ #define VERSIONS_URL "https://raw.githubusercontent.com/ENGO150/WHY2/master/versions.json" #define VERSIONS_NAME "versions.json" +#define SKIP_CHECK 1 + #endif diff --git a/src/misc.c b/src/misc.c index 4e1b54b..ed72f83 100644 --- a/src/misc.c +++ b/src/misc.c @@ -16,6 +16,8 @@ void checkVersion() { + if (SKIP_CHECK) return; + //FILE-CHECK VARIABLES int notFoundBuffer = 0; diff --git a/src/test/main.c b/src/test/main.c index b8e1d80..08acdbd 100644 --- a/src/test/main.c +++ b/src/test/main.c @@ -11,6 +11,12 @@ int main(int argc, char *argv[]) { + if (argc == 2 && strcmp(argv[1], "skipCheck") == 0) + { + #undef SKIP_CHECK + #define SKIP_CHECK 0 + } + char *text = encryptText(TEST_TEXT, TEST_KEY); text = decryptText(text, TEST_KEY);