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

@@ -311,7 +311,7 @@ public:
LoadGameFile( std::list<CGameDescription*>& games, const char* path ) : mGames( games ), mPath( path ){
}
void operator()( const char* name ) const {
if ( !extension_equal( path_get_extension( name ), "game" ) ) {
if ( !path_extension_is( name, "game" ) ) {
return;
}
StringOutputStream strPath( 256 );