From 90b53a7da17c1673577fb04162b91806ea2a45f5 Mon Sep 17 00:00:00 2001 From: meancoot Date: Mon, 16 Dec 2013 22:13:55 -0500 Subject: [PATCH] (iOS) Fix shameful logic error in unzip support --- apple/iOS/browser.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apple/iOS/browser.m b/apple/iOS/browser.m index 1999b8f175..b188d25b87 100644 --- a/apple/iOS/browser.m +++ b/apple/iOS/browser.m @@ -32,9 +32,9 @@ static bool zlib_extract_callback(const char *name, { char path[PATH_MAX]; - if (cmode != 0 || cmode != 8) + if (cmode != 0 && cmode != 8) { - RARCH_WARN("Could not unzip %s (unknown mode %d)\n", name, cmode); + apple_display_alert([NSString stringWithFormat:@"Could not unzip %s (unknown mode %d)", name, cmode], @"Action Failed"); return false; }