Browse Source

android: Don't crash the app when selecting a zip that causes a SecurityException

pull/15/merge
Charles Lombardo 3 years ago
committed by bunnei
parent
commit
8e8627a258
  1. 4
      src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt

4
src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt

@ -103,7 +103,11 @@ object GpuDriverHelper {
)
// Unzip the driver.
try {
unzip(driverInstallationPath + DRIVER_INTERNAL_FILENAME, driverInstallationPath!!)
} catch (e: SecurityException) {
return
}
// Initialize the driver parameters.
initializeDriverParameters(context)

Loading…
Cancel
Save