From eee06da6b473eb54cd42b1c31a241370e1f608ba Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 10 Nov 2019 23:10:44 -0500 Subject: [PATCH] again --- ios/src/io/anuke/mindustry/IOSLauncher.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ios/src/io/anuke/mindustry/IOSLauncher.java b/ios/src/io/anuke/mindustry/IOSLauncher.java index fed895ff17..a35fc2c617 100644 --- a/ios/src/io/anuke/mindustry/IOSLauncher.java +++ b/ios/src/io/anuke/mindustry/IOSLauncher.java @@ -94,8 +94,18 @@ public class IOSLauncher extends IOSApplication.Delegate{ //cons.get(new FileHandle(url.getAbsoluteString())); }catch(Throwable t){ ui.showException(t); - }finally{ - //url.stopAccessingSecurityScopedResource(); + + try{ + cons.get(new FileHandle(url.getPath())); + }catch(Throwable t2){ + ui.showException(t2); + + try{ + cons.get(new FileHandle(url.getAbsoluteURL().getPath())); + }catch(Throwable t3){ + ui.showException(t3); + } + } } }else{ ui.showErrorMessage("Failed to access file.");