ensure vfs_load() properly loads .hdr map
parent
0907a7ac78
commit
31e944af64
|
@ -337092,7 +337092,7 @@ char *file_id(const char *pathfile) {
|
||||||
char *ext = strchr(base, '.'); if (ext) ext[0] = '\0'; // remove all extensions
|
char *ext = strchr(base, '.'); if (ext) ext[0] = '\0'; // remove all extensions
|
||||||
#else // extensionless for audio/images only (materials: diffuse.tga and diffuse.png will match)
|
#else // extensionless for audio/images only (materials: diffuse.tga and diffuse.png will match)
|
||||||
char *ext = strrchr(base, '.'); //if (ext) ext[0] = '\0'; // remove all extensions
|
char *ext = strrchr(base, '.'); //if (ext) ext[0] = '\0'; // remove all extensions
|
||||||
if(ext) if( strstr(".jpg.png.bmp.tga.hdr"".", ext) || strstr(".ogg.mp3.wav.mod.xm.flac"".", ext) || strstr(".mp4.ogv.avi.mkv.wmv.mpg.mpeg"".", ext) ) {
|
if(ext) if( strstr(".jpg.png.bmp.tga"".", ext) || strstr(".ogg.mp3.wav.mod.xm.flac"".", ext) || strstr(".mp4.ogv.avi.mkv.wmv.mpg.mpeg"".", ext) ) {
|
||||||
ext = strchr(base, '.');
|
ext = strchr(base, '.');
|
||||||
ext[0] = '\0'; //strcpy(ext, "_xxx");
|
ext[0] = '\0'; //strcpy(ext, "_xxx");
|
||||||
}
|
}
|
||||||
|
@ -337751,6 +337751,8 @@ if( found && *found == 0 ) {
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
// PRINTF("VFS: %s\n", pathfile);
|
||||||
|
|
||||||
int size = 0;
|
int size = 0;
|
||||||
void *ptr = 0;
|
void *ptr = 0;
|
||||||
|
|
||||||
|
|
|
@ -161,7 +161,7 @@ char *file_id(const char *pathfile) {
|
||||||
char *ext = strchr(base, '.'); if (ext) ext[0] = '\0'; // remove all extensions
|
char *ext = strchr(base, '.'); if (ext) ext[0] = '\0'; // remove all extensions
|
||||||
#else // extensionless for audio/images only (materials: diffuse.tga and diffuse.png will match)
|
#else // extensionless for audio/images only (materials: diffuse.tga and diffuse.png will match)
|
||||||
char *ext = strrchr(base, '.'); //if (ext) ext[0] = '\0'; // remove all extensions
|
char *ext = strrchr(base, '.'); //if (ext) ext[0] = '\0'; // remove all extensions
|
||||||
if(ext) if( strstr(".jpg.png.bmp.tga.hdr"".", ext) || strstr(".ogg.mp3.wav.mod.xm.flac"".", ext) || strstr(".mp4.ogv.avi.mkv.wmv.mpg.mpeg"".", ext) ) {
|
if(ext) if( strstr(".jpg.png.bmp.tga"".", ext) || strstr(".ogg.mp3.wav.mod.xm.flac"".", ext) || strstr(".mp4.ogv.avi.mkv.wmv.mpg.mpeg"".", ext) ) {
|
||||||
ext = strchr(base, '.');
|
ext = strchr(base, '.');
|
||||||
ext[0] = '\0'; //strcpy(ext, "_xxx");
|
ext[0] = '\0'; //strcpy(ext, "_xxx");
|
||||||
}
|
}
|
||||||
|
@ -820,6 +820,8 @@ if( found && *found == 0 ) {
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
// PRINTF("VFS: %s\n", pathfile);
|
||||||
|
|
||||||
int size = 0;
|
int size = 0;
|
||||||
void *ptr = 0;
|
void *ptr = 0;
|
||||||
|
|
||||||
|
|
|
@ -5143,7 +5143,7 @@ char *file_id(const char *pathfile) {
|
||||||
char *ext = strchr(base, '.'); if (ext) ext[0] = '\0'; // remove all extensions
|
char *ext = strchr(base, '.'); if (ext) ext[0] = '\0'; // remove all extensions
|
||||||
#else // extensionless for audio/images only (materials: diffuse.tga and diffuse.png will match)
|
#else // extensionless for audio/images only (materials: diffuse.tga and diffuse.png will match)
|
||||||
char *ext = strrchr(base, '.'); //if (ext) ext[0] = '\0'; // remove all extensions
|
char *ext = strrchr(base, '.'); //if (ext) ext[0] = '\0'; // remove all extensions
|
||||||
if(ext) if( strstr(".jpg.png.bmp.tga.hdr"".", ext) || strstr(".ogg.mp3.wav.mod.xm.flac"".", ext) || strstr(".mp4.ogv.avi.mkv.wmv.mpg.mpeg"".", ext) ) {
|
if(ext) if( strstr(".jpg.png.bmp.tga"".", ext) || strstr(".ogg.mp3.wav.mod.xm.flac"".", ext) || strstr(".mp4.ogv.avi.mkv.wmv.mpg.mpeg"".", ext) ) {
|
||||||
ext = strchr(base, '.');
|
ext = strchr(base, '.');
|
||||||
ext[0] = '\0'; //strcpy(ext, "_xxx");
|
ext[0] = '\0'; //strcpy(ext, "_xxx");
|
||||||
}
|
}
|
||||||
|
@ -5802,6 +5802,8 @@ if( found && *found == 0 ) {
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
// PRINTF("VFS: %s\n", pathfile);
|
||||||
|
|
||||||
int size = 0;
|
int size = 0;
|
||||||
void *ptr = 0;
|
void *ptr = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue