platform/android_nosdl: use FS_GetDiskPath for icon path

This commit is contained in:
mittorn 2023-12-16 22:45:06 +03:00 committed by Alibek Omarov
parent bd5309b018
commit 42958bc746
1 changed files with 3 additions and 3 deletions

View File

@ -199,13 +199,13 @@ static int Android_GetGLAttribute( int eglAttr )
qboolean R_Init_Video( const int type )
{
char buf[MAX_VA_STRING];
qboolean retval;
char buf[10]; // Sys_GetParmFromCmdLine
if( FS_FileExists( GI->iconpath, true ) )
{
Q_snprintf( buf, sizeof( buf ), "%s/%s/%s", COM_CheckStringEmpty( host.rodir ) ? host.rodir : host.rootdir, GI->gamefolder, GI->iconpath );
Android_SetIcon( buf );
// TODO: convert icon to some android-readable format and place
Android_SetIcon( FS_GetDiskPath( GI->iconpath, false ));
}
Android_SetTitle( GI->title );