engine, filesystem: unify GetNativeObject between all the APIs. Allow getting filesystem APIs through GetNativeObject

This commit is contained in:
Alibek Omarov
2023-10-31 21:25:11 +03:00
parent 5ea074a1fd
commit 597429cf41
12 changed files with 57 additions and 33 deletions

View File

@@ -139,17 +139,6 @@ static inline void Platform_Shutdown( void )
#endif
}
static inline void *Platform_GetNativeObject( const char *name )
{
void *ptr = NULL;
#if XASH_ANDROID
ptr = Android_GetNativeObject( name );
#endif
return ptr;
}
/*
==============================================================================
@@ -158,7 +147,6 @@ static inline void *Platform_GetNativeObject( const char *name )
==============================================================================
*/
void Platform_Vibrate( float life, char flags );
void*Platform_GetNativeObject( const char *name );
/*
==============================================================================