2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

platform/android_nosdl: use FS_GetDiskPath for icon path

This commit is contained in:
mittorn 2023-12-16 22:45:06 +03:00
parent 849c075271
commit a843030a0b

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 );