VERY experimental Nintendo Switch 2 emulator
C++
android: Don't crash the app when selecting a zip that causes a SecurityException
Charles Lombardo0153f39bc14d
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.ktindex ed3c0f58ea..528011d7f8 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)