consider it an error if no dicts found for language. With this change

I can install a game for which there's no dict and when user opens it
he'll get an opportunity to download one.  Might be better to refuse
to install it....
This commit is contained in:
Eric House 2012-01-31 18:47:38 -08:00
parent 5c8488af1b
commit af2fcc76e0

View file

@ -524,10 +524,13 @@ public class GameUtils {
missingSet = new HashSet<String>( Arrays.asList( dictNames ) );
missingSet.remove( null );
boolean allHere = 0 != missingSet.size(); // need some non-null!
if ( allHere ) {
for ( DictUtils.DictAndLoc dal : installed ) {
missingSet.remove( dal.name );
}
boolean allHere = 0 == missingSet.size();
allHere = 0 == missingSet.size();
}
if ( null != missingNames ) {
missingNames[0] =
missingSet.toArray( new String[missingSet.size()] );