mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: client: touch: fix empty list when opening touch buttons menu for the first time
This commit is contained in:
parent
1d8acc16f1
commit
5098e24806
@ -1105,8 +1105,14 @@ static void Touch_InitConfig( void )
|
|||||||
/// TODO: hud font
|
/// TODO: hud font
|
||||||
//pfnGetScreenInfo( NULL ); //HACK: update hud screen parameters like iHeight
|
//pfnGetScreenInfo( NULL ); //HACK: update hud screen parameters like iHeight
|
||||||
if( FS_FileExists( touch_config_file->string, true ) )
|
if( FS_FileExists( touch_config_file->string, true ) )
|
||||||
|
{
|
||||||
Cbuf_AddText( va( "exec \"%s\"\n", touch_config_file->string ) );
|
Cbuf_AddText( va( "exec \"%s\"\n", touch_config_file->string ) );
|
||||||
else Touch_LoadDefaults_f( );
|
Cbuf_Execute();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Touch_LoadDefaults_f();
|
||||||
|
}
|
||||||
|
|
||||||
Touch_InitEditor();
|
Touch_InitEditor();
|
||||||
touch.joytexture = ref.dllFuncs.GL_LoadTexture( touch_joy_texture->string, NULL, 0, TF_NOMIPMAP );
|
touch.joytexture = ref.dllFuncs.GL_LoadTexture( touch_joy_texture->string, NULL, 0, TF_NOMIPMAP );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user