filesystem: add new call to fs_stdio C API to check whether we support that archive format

This commit is contained in:
Alibek Omarov
2024-07-30 02:03:15 +03:00
parent 7bb5175084
commit 52f9aad4d0
4 changed files with 47 additions and 18 deletions

View File

@@ -57,6 +57,15 @@ static int TestNoInit( void )
p = g_fs.LoadDirectFile( "hehe", NULL );
if( p ) free( p );
if( !g_fs.IsArchiveExtensionSupported( "pk3", 0 )) return 0;
if( !g_fs.IsArchiveExtensionSupported( "wad", 0 )) return 0;
if( !g_fs.IsArchiveExtensionSupported( "pak", 0 )) return 0;
if( !g_fs.IsArchiveExtensionSupported( "pk3dir", 0 )) return 0;
if( !g_fs.IsArchiveExtensionSupported( "pk3", IAES_ONLY_REAL_ARCHIVES )) return 0;
if( g_fs.IsArchiveExtensionSupported( "pk3dir", IAES_ONLY_REAL_ARCHIVES )) return 0;
if( g_fs.IsArchiveExtensionSupported( "vpk", 0)) return 0;
g_fs.FileExists( "asdcv", 0 );
g_fs.FileTime( "zxcasdfd", 0 );
g_fs.FileSize( "asdqwe", 1 );