sometimes, not having an 'extracted' file is a failure

This commit is contained in:
Tim Felgentreff 2016-11-24 20:16:46 +01:00
parent 7de49ce579
commit 8be2487fa9

View file

@ -371,7 +371,11 @@ int check_version(char* tool_path, char* data_path) {
fgets(dataversion, 20, f);
fclose(f);
} else {
#ifdef CHECK_EXTRACTED_VERSION
return 0; // No file means we have a problem
#else
return 1; // No file means we don't care
#endif
}
#ifndef WIN32
sprintf(buf, "%s -V", tool_path);