mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
override gameDictHere to allow null params
This commit is contained in:
parent
c271cb2fdd
commit
2e9d87fddc
1 changed files with 11 additions and 2 deletions
|
@ -180,6 +180,11 @@ public class GameUtils {
|
|||
return name;
|
||||
}
|
||||
|
||||
public static boolean gameDictHere( Context context, String path )
|
||||
{
|
||||
return gameDictHere( context, path, null, null );
|
||||
}
|
||||
|
||||
public static boolean gameDictHere( Context context, String path,
|
||||
String[] missingName,
|
||||
int[] missingLang )
|
||||
|
@ -188,8 +193,12 @@ public class GameUtils {
|
|||
CurGameInfo gi = new CurGameInfo( context );
|
||||
XwJNI.gi_from_stream( gi, stream );
|
||||
String dictName = removeDictExtn( gi.dictName );
|
||||
if ( null != missingName ) {
|
||||
missingName[0] = dictName;
|
||||
}
|
||||
if ( null != missingLang ) {
|
||||
missingLang[0] = gi.dictLang;
|
||||
}
|
||||
|
||||
boolean exists = false;
|
||||
for ( String name : dictList( context ) ) {
|
||||
|
|
Loading…
Reference in a new issue