Skip to content

Commit

Permalink
Add Android OBB mount path to the game data search list
Browse files Browse the repository at this point in the history
  • Loading branch information
pelya committed May 20, 2021
1 parent 5ed33af commit 145388d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/qcommon/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -3166,6 +3166,11 @@ static void FS_Startup( const char *gameName )
fs_homepath = Cvar_Get ("fs_homepath", homePath, CVAR_INIT|CVAR_PROTECTED );
fs_gamedirvar = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO );

if (getenv("ANDROID_OBB_MOUNT_DIR") != NULL && strlen(getenv("ANDROID_OBB_MOUNT_DIR")) > 0) {
Com_Printf( "Game data OBB mounted to %s\n", getenv("ANDROID_OBB_MOUNT_DIR") );
FS_AddGameDirectory( getenv("ANDROID_OBB_MOUNT_DIR"), gameName );
}

// add search path elements in reverse priority order
if (fs_basepath->string[0]) {
FS_AddGameDirectory( fs_basepath->string, gameName );
Expand Down

0 comments on commit 145388d

Please sign in to comment.