created flag for skipping checking version

This commit is contained in:
Václav Šmejkal 2022-04-29 18:00:38 +02:00
parent aa5edf5840
commit f60d6d0496
3 changed files with 10 additions and 0 deletions

View File

@ -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

View File

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

View File

@ -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);