diff --git a/jfile.cpp b/jfile.cpp index e0e9d98..b9bd68f 100644 --- a/jfile.cpp +++ b/jfile.cpp @@ -123,6 +123,10 @@ FILE *file_getfilepointer(const char *resourcename, int& filesize, const bool bi fseek(f, data_file->index.file_info[count].offset, SEEK_SET); } else { f = fopen(file_getfilenamewithfolder(resourcename), binary?"rb":"r"); + if (not f) { + printf("ERROR: No s'ha pogut obrir l'arxiu '%s'\n",resourcename); + exit(1); + } fseek(f, 0, SEEK_END); filesize = ftell(f); fseek(f, 0, SEEK_SET); diff --git a/version.h b/version.h index 002bb90..7f5850c 100644 --- a/version.h +++ b/version.h @@ -1,3 +1,3 @@ #pragma once -#define MINI_VERSION "0.9.79d" +#define MINI_VERSION "0.9.80d"