summaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-06-01 21:43:46 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:06:07 +0200
commit8e8627a258917f7ede82add331b95a3f9f1337db (patch)
treed46d4cf839b1501808562367b1107c839e4c8536 /src/android
parentinput_common: Fix virtual amiibos (diff)
downloadyuzu-8e8627a258917f7ede82add331b95a3f9f1337db.tar
yuzu-8e8627a258917f7ede82add331b95a3f9f1337db.tar.gz
yuzu-8e8627a258917f7ede82add331b95a3f9f1337db.tar.bz2
yuzu-8e8627a258917f7ede82add331b95a3f9f1337db.tar.lz
yuzu-8e8627a258917f7ede82add331b95a3f9f1337db.tar.xz
yuzu-8e8627a258917f7ede82add331b95a3f9f1337db.tar.zst
yuzu-8e8627a258917f7ede82add331b95a3f9f1337db.zip
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt
index ed3c0f58e..528011d7f 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt
@@ -103,7 +103,11 @@ object GpuDriverHelper {
)
// Unzip the driver.
- unzip(driverInstallationPath + DRIVER_INTERNAL_FILENAME, driverInstallationPath!!)
+ try {
+ unzip(driverInstallationPath + DRIVER_INTERNAL_FILENAME, driverInstallationPath!!)
+ } catch (e: SecurityException) {
+ return
+ }
// Initialize the driver parameters.
initializeDriverParameters(context)