scripts: sailfish: initial SailfishOS support

This commit is contained in:
Alibek Omarov
2023-06-02 05:37:13 +03:00
parent 3b8009917a
commit 8caa2d142f
12 changed files with 273 additions and 8 deletions
+13
View File
@@ -153,6 +153,19 @@ _inline int Sys_Start( void )
pfnChangeGame changeGame = NULL;
const char *game = getenv( E_GAME );
#ifdef XASH_SAILFISH
const char *home = getenv( "HOME" );
char buf[1024];
snprintf( buf, sizeof( buf ), "%s/xash", home );
setenv( "XASH3D_BASEDIR", buf, true );
#if XASH_SAILFISH == aurora
setenv( "XASH3D_RODIR", "/usr/share/su.xash.Engine/rodir", true );
#else
setenv( "XASH3D_RODIR", "/usr/share/harbour-xash3d-fwgs/rodir", true );
#endif
#endif // SAILFISH
if( !game )
game = XASH_GAMEDIR;