From 42958bc746cff8b83a965051a816a972f38b6a49 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sat, 16 Dec 2023 22:45:06 +0300 Subject: [PATCH] platform/android_nosdl: use FS_GetDiskPath for icon path --- engine/platform/android/vid_android.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/platform/android/vid_android.c b/engine/platform/android/vid_android.c index 6ba98d04..4276cdfd 100644 --- a/engine/platform/android/vid_android.c +++ b/engine/platform/android/vid_android.c @@ -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 );