- [NEW] Afegit missatge descriptiu si no es troba un require
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user