- [NEW] Afegit missatge descriptiu si no es troba un require

This commit is contained in:
2023-08-31 23:40:36 +02:00
parent 135db2c5e0
commit d1f13a0036
2 changed files with 5 additions and 1 deletions

View File

@@ -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); fseek(f, data_file->index.file_info[count].offset, SEEK_SET);
} else { } else {
f = fopen(file_getfilenamewithfolder(resourcename), binary?"rb":"r"); 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); fseek(f, 0, SEEK_END);
filesize = ftell(f); filesize = ftell(f);
fseek(f, 0, SEEK_SET); fseek(f, 0, SEEK_SET);

View File

@@ -1,3 +1,3 @@
#pragma once #pragma once
#define MINI_VERSION "0.9.79d" #define MINI_VERSION "0.9.80d"