[PATCH] wineandroid.drv: Simplify isFileWanted method.
Alexandre Julliard
julliard at winehq.org
Mon Feb 25 09:38:08 CST 2019
Isira Seneviratne <isirasen96 at gmail.com> writes:
> @@ -188,15 +188,13 @@ private void createProgressDialog( final int max, final String message )
>
> private final boolean isFileWanted( String name )
> {
> - if (name.equals( "files.sum" )) return true;
> - if (name.startsWith( "share/" )) return true;
> + if (name.equals( "files.sum" ) || name.startsWith( "share/" )) return true;
> for (String abi : get_supported_abis())
> {
> if (name.startsWith( abi + "/system/" )) return false;
> if (name.startsWith( abi + "/" )) return true;
> }
> - if (name.startsWith( "x86/" )) return true;
> - return false;
> + return name.startsWith( "x86/" );
I don't find it simpler, it's a matter of taste. There's no reason to
change it.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list