mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: android: more verbosity when mounting assets on Android fails
This commit is contained in:
@@ -116,6 +116,7 @@ static android_assets_t *FS_LoadAndroidAssets( qboolean engine )
|
||||
Android_GetAssetManager( assets );
|
||||
if( !assets->asset_manager )
|
||||
{
|
||||
Con_Printf( S_ERROR "%s: Can't get asset manager\n", __func__ );
|
||||
FS_CloseAndroidAssets( assets );
|
||||
return NULL;
|
||||
}
|
||||
@@ -123,6 +124,7 @@ static android_assets_t *FS_LoadAndroidAssets( qboolean engine )
|
||||
assets->dir = AAssetManager_openDir( assets->asset_manager, "" );
|
||||
if( !assets->dir )
|
||||
{
|
||||
Con_Printf( S_ERROR "%s: Can't open root asset directory\n", __func__ );
|
||||
FS_CloseAndroidAssets( assets );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user