add and use path_extension_is()

This commit is contained in:
Garux
2021-10-03 17:13:12 +03:00
parent a0e79e8ecd
commit b6d60fb17c
20 changed files with 50 additions and 63 deletions

View File

@@ -576,7 +576,7 @@ int main( int argc, char **argv ){
}
else if ( !strcmp( argv[i], "-dump" ) ) {
printf( "Dumping contents of: '%s'\n", argv[i + 1] );
if ( striEqual( path_get_filename_base_end( argv[i + 1] ), ".md3" ) ) {
if ( path_extension_is( argv[i + 1], "md3" ) ) {
MD3_Dump( argv[i + 1] );
}
else