mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
disallow opening android DBs when not configured correctly.
This commit is contained in:
parent
8fbc9ca343
commit
9340db36c1
1 changed files with 6 additions and 0 deletions
|
@ -1517,6 +1517,12 @@ main( int argc, char** argv )
|
|||
break;
|
||||
#ifdef USE_SQLITE
|
||||
case CMD_GAMEDB_FILE:
|
||||
/* Android isn't using XWFEATURE_SEARCHLIMIT, and it writes to
|
||||
stream, so to read an android DB is to invite mayhem. */
|
||||
# ifdef XWFEATURE_SEARCHLIMIT
|
||||
usage( argv[0], "Don't open android DBs without "
|
||||
"disabling XWFEATURE_SEARCHLIMIT" );
|
||||
# endif
|
||||
mainParams.dbFileName = optarg;
|
||||
case CMD_GAMEDB_ID:
|
||||
mainParams.dbFileID = atoi(optarg);
|
||||
|
|
Loading…
Add table
Reference in a new issue